Q56.全量 知识系统中的三个子系统
下是全量知识系统的三个子系统的内部需要的内容。请仔细阅读上述内容,先设计一段程序能表示上述信息中你能了解到的部分。
1、数据系统{ projection-语法 key-value }里程牌:数据及数据类型 区划技术板块:区域-主体 有支配权力
2、调控系统( transform-语义Tagged-value ):枚举及枚举文字。用不同的策略来调节业务和技术之间的匹配问题:场景-主题 起调节作用
3、交互系统(mapping-语用Named-value) : 集合及集合元素 专属业务领域:角色-主角 占主导地位
回答:
- ```python
- # 数据系统部分
- class DataSystem:
- def __init__(self, projection, key, value, milestone, domain, enum_text, scope, tree, cell, range, array, grid):
- self.projection = projection
- self.key = key
- self.value = value
- self.milestone = milestone
- self.domain = domain
- self.enum_text = enum_text
- self.scope = scope
- self.tree = tree
- self.cell = cell
- self.range = range
- self.array = array
- self.grid = grid
-
- # 知识系统部分
- class KnowledgeSystem:
- def __init__(self, transform, semantics, tagged_value, enum, strategy, scene, theme, agent, domain, service_model_entity, holon, scope, factor, range, entity):
- self.transform = transform
- self.semantics = semantics
- self.tagged_value = tagged_value
- self.enum = enum
- self.strategy = strategy
- self.scene = scene
- self.theme = theme
- self.agent = agent
- self.domain = domain
- self.service_model_entity = service_model_entity
- self.holon = holon
- self.scope = scope
- self.factor = factor
- self.range = range
- self.entity = entity
-
- # 交互系统部分
- class InteractionSystem:
- def __init__(self, mapping, syntax, named_value, collection, role, leading_role):
- self.mapping = mapping
- self.syntax = syntax
- self.named_value = named_value
- self.collection = collection
- self.role = role
- self.leading_role = leading_role
-
- # 实例化对象
- data_sys = DataSystem("projection-语法", "key-value", "数据及数据类型", "区划技术板块", "Domain", "枚举文字", "Scope", "tree", "cell", "Range", "array", "grid")
- knowledge_sys = KnowledgeSystem("transform-语义", "Tagged-value", "枚举及枚举文字", "不同的策略", "场景-主题", "起调节作用", "Agent", "Domain", "{Service,Model,Entity }", "Holon", "Scope", "Factor", "Range", "Entity")
- interaction_sys = InteractionSystem("mapping-语用", "Named-value", "集合及集合元素", "专属业务领域", "角色-主角", "占主导地位")
-
- ```
--交互系统
- ```python
- # 人机界面部分
- class HumanMachineInterface:
- def __init__(self, surface, scene, user_application, com_toolbox):
- self.surface = surface
- self.scene = scene
- self.user_application = user_application
- self.com_toolbox = com_toolbox
-
- # Lexicon 部分
- class Lexicon:
- def __init__(self, lexicon_type, application, ansi_form, program_interface, ldap_artifact_library, true_type, network, iso, machine_interface, outerface, dll_equipment_library, structure):
- self.lexicon_type = lexicon_type
- self.application = application
- self.ansi_form = ansi_form
- self.program_interface = program_interface
- self.ldap_artifact_library = ldap_artifact_library
- self.true_type = true_type
- self.network = network
- self.iso = iso
- self.machine_interface = machine_interface
- self.outerface = outerface
- self.dll_equipment_library = dll_equipment_library
- self.structure = structure
-
- # 实例化对象
- human_interface = HumanMachineInterface("surface", "scene", "user application", "COM toolbox")
- lexicon = Lexicon("Lexicon", "Public, Protected, Private", "<应用>ansi形式", "程序接口", "LDAP工件库", "True{形式,认知,词典}", "<网络>ISO", "机器接口", "outerface-脚本", "DLL装备库", "Structure{jump,break,continue}")
- ```
Q57. 请将三个子系统的功能合并到一起重写代码
- ```python
- # 定义三个子系统的功能合并到一起
- class System:
- 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):
- self.surface = surface
- self.scene = scene
- self.user_application = user_application
- self.com_toolbox = com_toolbox
- self.lexicon_type = lexicon_type
- self.application = application
- self.ansi_form = ansi_form
- self.program_interface = program_interface
- self.ldap_artifact_library = ldap_artifact_library
- self.true_type = true_type
- self.network = network
- self.iso = iso
- self.machine_interface = machine_interface
- self.outerface = outerface
- self.dll_equipment_library = dll_equipment_library
- self.structure = structure
-
- # 实例化对象
- system = System("surface", "scene", "user application", "COM toolbox", "Lexicon", "Public, Protected, Private", "<应用>ansi形式", "程序接口", "LDAP工件库", "True{形式,认知,词典}", "<网络>ISO", "机器接口", "outerface-脚本", "DLL装备库", "Structure{jump,break,continue}")
- ```
Q58.在上面的程序中,并没有体现三个子系统的标题部分中给出的内容。如果将每个标题行下面的内容(各三行)视为业务内容的话,你可以将标题部分理解为 表示了每个系统的技术信息。请按照这个提示,完善程序。
- ```python
- class HumanMachineInterface:
- def __init__(self, surface, scene, user_application, com_toolbox):
- self.surface = surface
- self.scene = scene
- self.user_application = user_application
- self.com_toolbox = com_toolbox
- self.scope = scope
- self.range = range
-
- class Lexicon:
- def __init__(self, lexicon_type, public_protected_private, ansi_form, program_interface, ldap_artifact_library, true_type):
- self.lexicon_type = lexicon_type
- self.public_protected_private = public_protected_private
- self.ansi_form = ansi_form
- self.program_interface = program_interface
- self.ldap_artifact_library = ldap_artifact_library
- self.true_type = true_type
- self.scope = scope
- self.range = range
-
- class MachineInterface:
- def __init__(self, iso, outerface_script, dll_equipment_library, structure):
- self.iso = iso
- self.outerface_script = outerface_script
- self.dll_equipment_library = dll_equipment_library
- self.structure = structure
- self.scope = scope
- self.range = range
-
- # 实例化对象
- human_interface = HumanMachineInterface("surface", "scene", "user application", "COM toolbox", "Scope content", "Range content")
- lexicon = Lexicon("Lexicon", "Public, Protected, Private", "<应用>ansi形式", "程序接口", "LDAP工件库", "True{形式,认知,词典}", "Scope content", "Range content")
- machine_interface = MachineInterface("<网络>ISO", "outerface-脚本", "DLL装备库", "Structure{jump,break,continue}", "Scope content", "Range content")
- ```
Q59. 你还是没有作答! 请认真看问题,给出答复!!!
- ```python
- class Transform:
- def __init__(self, scope, range):
- self.scope = scope
- self.range = range
-
- class TaggedValue:
- def __init__(self, enum, enum_text):
- self.enum = enum
- self.enum_text = enum_text
-
- # 实例化对象
- transform = Transform("场景-主题", "Agent 具体类-三个前后件的事件源")
- tagged_value = TaggedValue("Domain {Service,Model,Entity }", "<两边-包容差异> 一多互摄")
- ```