• 全量知识系统问题及SmartChat给出的答复 之18 三个子系统 之1


    Q56.全量 知识系统中的三个子系统

    下是全量知识系统的三个子系统的内部需要的内容。请仔细阅读上述内容,先设计一段程序能表示上述信息中你能了解到的部分。

    1、数据系统{ projection-语法 key-value }里程牌:数据及数据类型 区划技术板块:区域-主体 有支配权力

    1. Domain  枚举文字 a list( 组件Compenent One-Single单身汉 成长) -a lattice 晶格 知性-事物双面 正反分合
    2. Scope   词条     a tree( 组对Correlative Tree -Tuple三元组 成业) -a cell  表格 感性-意识双阀 上下分离
    3. Range   表字段  a array(组合Composite Two-Pairing 速配对成家) -a grid 网格 理性-社会两极 阴阳分化

    2、调控系统( transform-语义Tagged-value ):枚举及枚举文字。用不同的策略来调节业务和技术之间的匹配问题:场景-主题 起调节作用

    1. Agent 具体类-三个前后件的事件源   Domain {Service,Model,Entity }) 分离业务和技术  <两边-包容差异> 一多互摄 
    2. Holon 抽象类-三种上下文的聚合根    Scope {,,}  安定业务和技术<无碍-部分对齐> 纯杂相齐
    3. Factor 实体类- 三类左右式的值对象    Range{,,}     合并业务和技术 <圆融-提取共性> 始终如一

    3、交互系统(mapping-语用Named-value)  : 集合及集合元素 专属业务领域:角色-主角 占主导地位

    1. 人机界面surface-场景(用户应用程序)COM工具箱    Lexicon {Public,Protected,Private} <应用>ansi形式
    2. 程序接口interface-程序(客户定制程序)LDAP工件库  True{形式,认知,词典}          <网络>ISO模型
    3. 机器接口outerface-脚本(服务部署程序)DLL装备库    Structure{jump,break,continue} <物理>认知

    回答:

    1. ```python
    2. # 数据系统部分
    3. class DataSystem:
    4. def __init__(self, projection, key, value, milestone, domain, enum_text, scope, tree, cell, range, array, grid):
    5. self.projection = projection
    6. self.key = key
    7. self.value = value
    8. self.milestone = milestone
    9. self.domain = domain
    10. self.enum_text = enum_text
    11. self.scope = scope
    12. self.tree = tree
    13. self.cell = cell
    14. self.range = range
    15. self.array = array
    16. self.grid = grid
    17. # 知识系统部分
    18. class KnowledgeSystem:
    19. def __init__(self, transform, semantics, tagged_value, enum, strategy, scene, theme, agent, domain, service_model_entity, holon, scope, factor, range, entity):
    20. self.transform = transform
    21. self.semantics = semantics
    22. self.tagged_value = tagged_value
    23. self.enum = enum
    24. self.strategy = strategy
    25. self.scene = scene
    26. self.theme = theme
    27. self.agent = agent
    28. self.domain = domain
    29. self.service_model_entity = service_model_entity
    30. self.holon = holon
    31. self.scope = scope
    32. self.factor = factor
    33. self.range = range
    34. self.entity = entity
    35. # 交互系统部分
    36. class InteractionSystem:
    37. def __init__(self, mapping, syntax, named_value, collection, role, leading_role):
    38. self.mapping = mapping
    39. self.syntax = syntax
    40. self.named_value = named_value
    41. self.collection = collection
    42. self.role = role
    43. self.leading_role = leading_role
    44. # 实例化对象
    45. data_sys = DataSystem("projection-语法", "key-value", "数据及数据类型", "区划技术板块", "Domain", "枚举文字", "Scope", "tree", "cell", "Range", "array", "grid")
    46. knowledge_sys = KnowledgeSystem("transform-语义", "Tagged-value", "枚举及枚举文字", "不同的策略", "场景-主题", "起调节作用", "Agent", "Domain", "{Service,Model,Entity }", "Holon", "Scope", "Factor", "Range", "Entity")
    47. interaction_sys = InteractionSystem("mapping-语用", "Named-value", "集合及集合元素", "专属业务领域", "角色-主角", "占主导地位")
    48. ```

    --交互系统 

    1. ```python
    2. # 人机界面部分
    3. class HumanMachineInterface:
    4. def __init__(self, surface, scene, user_application, com_toolbox):
    5. self.surface = surface
    6. self.scene = scene
    7. self.user_application = user_application
    8. self.com_toolbox = com_toolbox
    9. # Lexicon 部分
    10. class Lexicon:
    11. def __init__(self, lexicon_type, application, ansi_form, program_interface, ldap_artifact_library, true_type, network, iso, machine_interface, outerface, dll_equipment_library, structure):
    12. self.lexicon_type = lexicon_type
    13. self.application = application
    14. self.ansi_form = ansi_form
    15. self.program_interface = program_interface
    16. self.ldap_artifact_library = ldap_artifact_library
    17. self.true_type = true_type
    18. self.network = network
    19. self.iso = iso
    20. self.machine_interface = machine_interface
    21. self.outerface = outerface
    22. self.dll_equipment_library = dll_equipment_library
    23. self.structure = structure
    24. # 实例化对象
    25. human_interface = HumanMachineInterface("surface", "scene", "user application", "COM toolbox")
    26. lexicon = Lexicon("Lexicon", "Public, Protected, Private", "<应用>ansi形式", "程序接口", "LDAP工件库", "True{形式,认知,词典}", "<网络>ISO", "机器接口", "outerface-脚本", "DLL装备库", "Structure{jump,break,continue}")
    27. ```

     Q57. 请将三个子系统的功能合并到一起重写代码

    1. ```python
    2. # 定义三个子系统的功能合并到一起
    3. class System:
    4. def __init__(self, surface, scene, user_application, com_toolbox, lexicon_type, application, ansi_form, program_interface, ldap_artifact_library, true_type, network, iso, machine_interface, outerface, dll_equipment_library, structure):
    5. self.surface = surface
    6. self.scene = scene
    7. self.user_application = user_application
    8. self.com_toolbox = com_toolbox
    9. self.lexicon_type = lexicon_type
    10. self.application = application
    11. self.ansi_form = ansi_form
    12. self.program_interface = program_interface
    13. self.ldap_artifact_library = ldap_artifact_library
    14. self.true_type = true_type
    15. self.network = network
    16. self.iso = iso
    17. self.machine_interface = machine_interface
    18. self.outerface = outerface
    19. self.dll_equipment_library = dll_equipment_library
    20. self.structure = structure
    21. # 实例化对象
    22. system = System("surface", "scene", "user application", "COM toolbox", "Lexicon", "Public, Protected, Private", "<应用>ansi形式", "程序接口", "LDAP工件库", "True{形式,认知,词典}", "<网络>ISO", "机器接口", "outerface-脚本", "DLL装备库", "Structure{jump,break,continue}")
    23. ```

    Q58.在上面的程序中,并没有体现三个子系统的标题部分中给出的内容。如果将每个标题行下面的内容(各三行)视为业务内容的话,你可以将标题部分理解为 表示了每个系统的技术信息。请按照这个提示,完善程序。

    1. ```python
    2. class HumanMachineInterface:
    3. def __init__(self, surface, scene, user_application, com_toolbox):
    4. self.surface = surface
    5. self.scene = scene
    6. self.user_application = user_application
    7. self.com_toolbox = com_toolbox
    8. self.scope = scope
    9. self.range = range
    10. class Lexicon:
    11. def __init__(self, lexicon_type, public_protected_private, ansi_form, program_interface, ldap_artifact_library, true_type):
    12. self.lexicon_type = lexicon_type
    13. self.public_protected_private = public_protected_private
    14. self.ansi_form = ansi_form
    15. self.program_interface = program_interface
    16. self.ldap_artifact_library = ldap_artifact_library
    17. self.true_type = true_type
    18. self.scope = scope
    19. self.range = range
    20. class MachineInterface:
    21. def __init__(self, iso, outerface_script, dll_equipment_library, structure):
    22. self.iso = iso
    23. self.outerface_script = outerface_script
    24. self.dll_equipment_library = dll_equipment_library
    25. self.structure = structure
    26. self.scope = scope
    27. self.range = range
    28. # 实例化对象
    29. human_interface = HumanMachineInterface("surface", "scene", "user application", "COM toolbox", "Scope content", "Range content")
    30. lexicon = Lexicon("Lexicon", "Public, Protected, Private", "<应用>ansi形式", "程序接口", "LDAP工件库", "True{形式,认知,词典}", "Scope content", "Range content")
    31. machine_interface = MachineInterface("<网络>ISO", "outerface-脚本", "DLL装备库", "Structure{jump,break,continue}", "Scope content", "Range content")
    32. ```

    Q59. 你还是没有作答! 请认真看问题,给出答复!!! 

    1. ```python
    2. class Transform:
    3. def __init__(self, scope, range):
    4. self.scope = scope
    5. self.range = range
    6. class TaggedValue:
    7. def __init__(self, enum, enum_text):
    8. self.enum = enum
    9. self.enum_text = enum_text
    10. # 实例化对象
    11. transform = Transform("场景-主题", "Agent 具体类-三个前后件的事件源")
    12. tagged_value = TaggedValue("Domain {Service,Model,Entity }", "<两边-包容差异> 一多互摄")
    13. ```

  • 相关阅读:
    HarmonyOS开发案例:【首选项】
    Qt 常用函数
    2022“杭电杯”中国大学生算法设计超级联赛(3)题解
    excel中通过ROW函数返回引用的行号
    Android热修复学习(一)
    switch中的PVID、VID、untag、tag概念
    性能测试工具Loadrunner以及性能测试的流程以及每一个步骤的流程和结果分析
    MASA MAUI Plugin (四)条形码、二维码扫描功能
    完全背包问题 —— 贪心优化 DP 范围
    2020华数杯全国大学生数学建模竞赛A题-带相变材料的低温防护服御寒仿真模拟(三)(附带赛题解析&获奖论文及MATLAB代码)
  • 原文地址:https://blog.csdn.net/ChuanfangChen/article/details/136513419