第五章 能力调用
5.1 能力调用的提出
前一章已经建立了能力匹配理论。
需求经过结构解析以后,可以从已有能力结构中选择适合当前需求的能力:
Requirement→RequirementStructure→CapabilityMatching→CapabilityStructureRequirement \rightarrow RequirementStructure \rightarrow CapabilityMatching \rightarrow CapabilityStructure
但是,能力匹配成功并不意味着问题已经得到解决。
匹配只解决:
应该调用什么能力。
接下来必须解决:
被选择的能力如何实际工作?
一个能力之所以能够完成任务,是因为它能够根据当前需求,调用相关的:
- 知识;
- 对象;
- 属性;
- 方法;
- 运算结构。
并将这些结构按照一定关系组织起来,完成实际处理。
因此:
能力调用(Capability Invocation)是能力结构被激活以后,对其所需要的知识结构、对象结构、属性结构、方法结构和运算结构进行选择、实例化、传递参数、执行和接收结果的过程。
基本过程为:
Capability→Call→Structure→Operation→ResultCapability \rightarrow Call \rightarrow Structure \rightarrow Operation \rightarrow Result
能力调用是能力从“静态结构”进入“动态执行”的关键机制。
5.2 能力不是直接产生结果
能力本身并不是结果产生器。
能力更准确地说是一种:
结构调用组织者。
例如一个“产品选择能力”本身并不知道某个具体产品的价格。
它需要调用:
ProductProduct
然后调用:
Product.PriceProduct.Price
再调用:
PriceComparisonMethodPriceComparisonMethod
然后调用:
Compare()Compare()
最终得到:
ComparisonResultComparisonResult
因此:
Capability→Object→Attribute→Method→Operation→ResultCapability \rightarrow Object \rightarrow Attribute \rightarrow Method \rightarrow Operation \rightarrow Result
能力的作用,是组织这些结构形成一个完整的处理过程。
5.3 能力调用的基本定义
定义能力调用:
Invocation(C,S,I)Invocation(C,S,I)
其中:
- CC:调用能力;
- SS:被调用结构;
- II:调用输入。
一次完整调用还需要包含:
Invocation={Caller,Target,Input,Condition,Parameter,Operation,Output,Validation}Invocation= \{Caller,Target,Input,Condition,Parameter,Operation,Output,Validation\}
其中:
- Caller:调用者;
- Target:被调用结构;
- Input:输入;
- Condition:调用条件;
- Parameter:参数;
- Operation:运算;
- Output:输出;
- Validation:结果验证。
因此:
能力调用不是简单地“访问一个数据”,而是一个完整的结构调用过程。
5.4 能力调用的基本链
能力调用的基本结构可以表示为:
Capability→Knowledge→Object→Attribute→Method→Operation→ResultCapability \rightarrow Knowledge \rightarrow Object \rightarrow Attribute \rightarrow Method \rightarrow Operation \rightarrow Result
但实际运行时,并不一定严格按照这一固定顺序。
例如能力可能首先调用对象:
Capability→ObjectCapability \rightarrow Object
然后根据对象类型调用知识:
Object→KnowledgeObject \rightarrow Knowledge
再读取属性:
Object→AttributeObject \rightarrow Attribute
然后选择方法:
Attribute→MethodAttribute \rightarrow Method
最后执行运算:
Method→OperationMethod \rightarrow Operation
因此,能力调用本质上是:
按照当前任务需要动态组织结构调用关系。
5.5 能力调用知识
能力首先需要调用与当前任务相关的知识。
但能力不是调用全部知识,而是根据需求和能力结构确定知识范围。
例如:
Capability=ProductSelectionCapability=ProductSelection
当前需求要求:
PricePrice CertificationCertification PerformancePerformance
那么能力只需要调用相关知识:
KnowledgePriceKnowledge_{Price} KnowledgeCertificationKnowledge_{Certification} KnowledgePerformanceKnowledge_{Performance}
而不是调用整个知识系统。
因此:
Capability→KnowledgeMatching→RelevantKnowledgeCapability \rightarrow KnowledgeMatching \rightarrow RelevantKnowledge
这延续了前面建立的知识结构与能力结构对应关系。
5.6 能力调用知识不是简单读取
能力调用知识与普通数据库读取不同。
普通读取可以表示为:
ID→DataID \rightarrow Data
而结构智能中的能力调用是:
Requirement→Capability→KnowledgeStructureRequirement \rightarrow Capability \rightarrow KnowledgeStructure
首先确定:
当前任务需要什么知识。
然后确定:
哪个知识结构满足需求。
最后:
将知识结构绑定到当前能力实例。
因此:
KnowledgeCall=Match+Bind+ReturnKnowledgeCall = Match + Bind + Return
即:
知识调用包括匹配、绑定和返回。
5.7 能力调用对象
能力不仅调用知识,还需要调用具体对象。
例如:
ProductClassProductClass
存在多个对象:
ProductAProductA ProductBProductB ProductCProductC
当前需求可能要求比较:
ProductAProductA
和:
ProductBProductB
能力首先需要确定:
ObjectSelectionObjectSelection
然后建立:
Capability→ProductACapability \rightarrow ProductA Capability→ProductBCapability \rightarrow ProductB
因此:
能力调用对象,就是将抽象能力绑定到具体对象实例的过程。
5.8 对象实例化
如果能力结构要求处理一个对象类型:
ProductProduct
实际任务中必须绑定具体对象:
ProductAProductA
因此:
ProductClass→ProductObjectProductClass \rightarrow ProductObject
然后:
Capability(ProductObject)Capability(ProductObject)
形成能力实例。
例如:
ProductSelection(ProductA)ProductSelection(ProductA)
这意味着:
当前能力正在处理 ProductA。
如果处理多个对象:
ProductSelection(P1,P2,P3)ProductSelection(P_1,P_2,P_3)
能力可以对多个对象进行比较、筛选和排序。
5.9 能力调用属性
对象确定以后,能力必须根据任务调用相关属性。
基本关系:
Object→AttributeObject \rightarrow Attribute
例如:
ProductA→PriceProductA \rightarrow Price
得到:
ProductA.Price=29.99ProductA.Price=29.99
如果当前任务要求认证:
ProductA→CertificationProductA \rightarrow Certification
如果要求性能:
ProductA→PerformanceProductA \rightarrow Performance
因此:
能力调用属性,本质上是从当前对象结构中提取当前任务所需要的结构化信息。
5.10 属性值作为调用参数
属性本身通常不是最终运算对象。
真正进入运算的通常是属性值:
Attribute→ValueAttribute \rightarrow Value
例如:
ProductA.Price=29.99ProductA.Price=29.99
能力调用比较方法:
Compare(ProductA.Price,ProductB.Price)Compare(ProductA.Price,ProductB.Price)
实际传递的是:
Compare(29.99,39.99)Compare(29.99,39.99)
因此:
Object→Attribute→Value→MethodObject \rightarrow Attribute \rightarrow Value \rightarrow Method
形成能力调用中的参数链。
5.11 能力调用方法
方法是能力结构中的重要执行结构。
能力确定任务以后,需要选择适合当前条件的方法。
例如:
Capability=ProductEvaluationCapability=ProductEvaluation
可能具有:
PriceComparisonMethodPriceComparisonMethod PerformanceComparisonMethodPerformanceComparisonMethod WeightedEvaluationMethodWeightedEvaluationMethod
能力根据当前需求选择:
MethodSelectionMethodSelection
然后:
Capability→MethodCapability \rightarrow Method
这就是方法调用。
5.12 方法不是能力本身
必须明确:
Capability≠MethodCapability \neq Method
能力回答:
能够完成什么。
方法回答:
按照什么路径完成。
例如:
“产品评价能力”可以调用:
PriceFirstMethodPriceFirstMethod
也可以调用:
PerformanceFirstMethodPerformanceFirstMethod
也可以调用:
WeightedScoreMethodWeightedScoreMethod
因此:
Capability→Select(Method)→Execute(Method)Capability \rightarrow Select(Method) \rightarrow Execute(Method)
能力决定方法是否被调用以及何时调用。
5.13 方法实例化
方法也存在抽象结构和具体实例。
例如:
ComparePrice()ComparePrice()
是一个抽象方法。
当实际对象确定:
ProductAProductA
和:
ProductBProductB
以后,可以实例化为:
ComparePrice(ProductA.Price,ProductB.Price)ComparePrice(ProductA.Price,ProductB.Price)
于是:
Method→MethodInstanceMethod \rightarrow MethodInstance
方法实例具有:
- 调用对象;
- 输入参数;
- 条件;
- 运算;
- 输出。
因此:
方法只有经过实例化,才能作用于当前任务中的具体对象和具体数据。
5.14 能力调用运算结构
方法调用以后,需要执行具体运算。
例如:
Compare(20,30)Compare(20,30)
属于比较运算。
又如:
Sort(ProductList,Price)Sort(ProductList,Price)
属于排序运算。
或者:
Match(Product,Requirement)Match(Product,Requirement)
属于结构匹配运算。
因此:
Method→OperationMethod \rightarrow Operation
方法可以组织运算,但真正产生计算结果的是运算结构。
5.15 运算结构的类型
能力可以调用多种基础运算结构。
包括:
比较
Compare(A,B)Compare(A,B)
计算
Compute(A,B)Compute(A,B)
判断
Judge(Condition)Judge(Condition)
匹配
Match(A,B)Match(A,B)
筛选
Filter(Set,Condition)Filter(Set,Condition)
排序
Sort(Set,Attribute)Sort(Set,Attribute)
分类
Classify(Object,Rule)Classify(Object,Rule)
验证
Verify(Result,Rule)Verify(Result,Rule)
组合
Combine(A,B,…)Combine(A,B,…)
转换
Transform(A)Transform(A)
这些运算可以作为能力结构中的基础可调用结构。
5.16 能力调用的参数传递
能力调用不是无参数的。
一次调用通常需要:
ParametersParameters
例如:
ComparePrice(ProductA,ProductB)ComparePrice(ProductA,ProductB)
其中:
ProductA.PriceProductA.Price
和:
ProductB.PriceProductB.Price
成为实际运算参数。
因此:
Capability→Method→ParameterBinding→OperationCapability \rightarrow Method \rightarrow ParameterBinding \rightarrow Operation
参数绑定必须解决:
- 参数来源;
- 参数类型;
- 参数对应关系;
- 参数是否完整;
- 参数是否满足条件。
5.17 参数来源
能力调用参数可以来自多个来源。
来自需求
例如:
PriceLimit=50PriceLimit=50
来自对象属性
Product.Price=29.99Product.Price=29.99
来自知识结构
CertificationRequirement=FDACertificationRequirement=FDA
来自前一个能力的输出
ObjectRecognitionResult→AttributeExtractionObjectRecognitionResult \rightarrow AttributeExtraction
来自前一个运算结果
CompareResult→DecisionCompareResult \rightarrow Decision
因此:
Parameter=Requirement+Object+Knowledge+PreviousResultParameter = Requirement + Object + Knowledge + PreviousResult
能力调用实际上形成参数流。
5.18 能力调用的输入输出关系
能力调用可以表示为:
Call:Input→Structure→OutputCall: Input \rightarrow Structure \rightarrow Output
例如:
ProductA.PriceProductA.Price
输入:
29.9929.99
调用:
CompareCompare
输出:
A<BA<B
然后这个输出可以成为下一能力的输入:
A<B→RankingA<B \rightarrow Ranking
因此:
Output(C1)→Input(C2)Output(C_1) \rightarrow Input(C_2)
形成能力之间的连续调用。
5.19 能力调用链
复杂任务需要连续调用多个结构。
例如:
Capability→Object→Attribute→Value→Method→Operation→ResultCapability \rightarrow Object \rightarrow Attribute \rightarrow Value \rightarrow Method \rightarrow Operation \rightarrow Result
结果又可以进入:
NextMethodNextMethod
于是:
C→S1→S2→S3→S4→ResultC \rightarrow S_1 \rightarrow S_2 \rightarrow S_3 \rightarrow S_4 \rightarrow Result
形成:
能力调用链。
5.20 能力调用链中的中间结果
能力调用并不一定一次产生最终结果。
例如:
第一步:
ProductRecognition→ProductSetProductRecognition \rightarrow ProductSet
第二步:
ProductSet→AttributeExtractionProductSet \rightarrow AttributeExtraction
第三步:
Attributes→ComparisonAttributes \rightarrow Comparison
第四步:
ComparisonResult→RankingComparisonResult \rightarrow Ranking
第五步:
Ranking→SelectionRanking \rightarrow Selection
因此:
Result1→Result2→Result3→Result4→FinalResultResult_1 \rightarrow Result_2 \rightarrow Result_3 \rightarrow Result_4 \rightarrow FinalResult
中间结果本身也是结构,可以继续被调用。
5.21 能力调用对象方法
借鉴面向对象结构,可以建立:
Object.Method()Object.Method()
形式。
例如:
ProductA.Compare(ProductB)ProductA.Compare(ProductB)
实际上表示:
Capability→ProductA→CompareMethodCapability \rightarrow ProductA \rightarrow CompareMethod
方法读取:
ProductA.AttributesProductA.Attributes
和:
ProductB.AttributesProductB.Attributes
然后进行运算。
因此:
对象是方法调用的载体,属性是方法运算的重要数据来源,能力是组织这些调用的上层结构。
5.22 能力调用知识中的对象方法
知识结构中保存的方法,也可以被能力调用。
例如知识结构中定义:
Method=CalculateCostMethod=CalculateCost
能力:
CostEvaluationCapabilityCostEvaluationCapability
调用:
CostEvaluation→CalculateCostCostEvaluation \rightarrow CalculateCost
然后传入:
PricePrice QuantityQuantity ShippingShipping
得到:
TotalCostTotalCost
因此:
Capability→KnowledgeMethod→MethodInstance→OperationCapability \rightarrow KnowledgeMethod \rightarrow MethodInstance \rightarrow Operation
5.23 能力调用规则
虽然本章重点是知识、对象、属性、方法和运算结构,但方法和运算的调用必须受到规则控制。
例如:
CertificationRequired=TrueCertificationRequired=True
则能力必须调用:
CheckCertification()CheckCertification()
如果:
Certification=FalseCertification=False
则:
Reject(Product)Reject(Product)
因此:
Condition→Rule→MethodSelectionCondition \rightarrow Rule \rightarrow MethodSelection
规则决定:
哪个结构可以被调用。
5.24 能力调用的条件控制
能力并不是所有情况下都调用相同结构。
例如:
PricePriority=TruePricePriority=True
调用:
PriceComparisonPriceComparison
如果:
PerformancePriority=TruePerformancePriority=True
则调用:
PerformanceComparisonPerformanceComparison
因此:
Condition→CallSelectionCondition \rightarrow CallSelection
能力调用是条件驱动的。
5.25 能力调用的结构选择
一个能力可能拥有多个可调用结构。
例如:
Capability→{Method1,Method2,Method3}Capability \rightarrow \{Method_1,Method_2,Method_3\}
能力根据:
- 需求;
- 条件;
- 对象状态;
- 知识;
- 约束;
选择其中一个或多个。
因此:
StructureSelectionStructureSelection
是能力调用的重要步骤。
5.26 能力调用的结构实例化
抽象结构被选中后,需要实例化。
例如:
抽象对象:
ProductProduct
实例:
ProductAProductA
抽象属性:
PricePrice
实例值:
29.9929.99
抽象方法:
ComparePriceComparePrice
实例:
ComparePrice(ProductA,ProductB)ComparePrice(ProductA,ProductB)
抽象运算:
CompareCompare
实例:
Compare(29.99,39.99)Compare(29.99,39.99)
因此:
AbstractStructure→Instance→ExecutionAbstractStructure \rightarrow Instance \rightarrow Execution
5.27 能力调用的执行顺序
虽然不同能力的调用路径可以不同,但通常需要形成以下逻辑:
1. 确定目标1.\ 确定目标 2. 确定对象2.\ 确定对象 3. 确定知识3.\ 确定知识 4. 确定属性4.\ 确定属性 5. 获取属性值5.\ 获取属性值 6. 选择方法6.\ 选择方法 7. 实例化方法7.\ 实例化方法 8. 绑定参数8.\ 绑定参数 9. 调用运算9.\ 调用运算 10. 返回结果10.\ 返回结果 11. 验证结果11.\ 验证结果
形成:
Goal→Object→Knowledge→Attribute→Value→Method→Parameter→Operation→Result→ValidationGoal \rightarrow Object \rightarrow Knowledge \rightarrow Attribute \rightarrow Value \rightarrow Method \rightarrow Parameter \rightarrow Operation \rightarrow Result \rightarrow Validation
5.28 能力调用与能力链
一个能力也可以调用另一个能力。
例如:
RecommendationCapabilityRecommendationCapability
需要调用:
ProductEvaluationCapabilityProductEvaluationCapability
那么:
Recommendation→EvaluationRecommendation \rightarrow Evaluation
评价能力产生:
EvaluationResultEvaluationResult
再返回给推荐能力:
EvaluationResult→RecommendationEvaluationResult \rightarrow Recommendation
因此:
能力本身也可以成为可调用结构。
形成:
Capability→Capability→CapabilityCapability \rightarrow Capability \rightarrow Capability
这使复杂能力能够由多个能力组合形成。
5.29 能力调用与方法调用的区别
必须明确两个层次。
能力调用
解决:
调用哪一个能力。
例如:
ProductRecommendationCapabilityProductRecommendationCapability
方法调用
解决:
这个能力按照什么路径执行。
例如:
WeightedScoreMethodWeightedScoreMethod
因此:
Requirement→CapabilityMatching→Capability→MethodSelection→MethodRequirement \rightarrow CapabilityMatching \rightarrow Capability \rightarrow MethodSelection \rightarrow Method
不能把能力调用和方法调用混为一谈。
5.30 能力调用与运算调用的区别
同样需要区分:
能力
组织任务。
方法
组织执行路径。
运算
执行具体操作。
例如:
ProductEvaluationCapabilityProductEvaluationCapability
调用:
WeightedEvaluationMethodWeightedEvaluationMethod
方法内部调用:
ComputeCompute CompareCompare SortSort
最终形成:
Capability→Method→OperationCapability \rightarrow Method \rightarrow Operation
因此:
能力负责组织,方法负责路径,运算负责执行。
5.31 能力调用的返回结果
任何调用都必须产生可以被继续处理的返回结果。
例如:
Compare(20,30)→TrueCompare(20,30) \rightarrow True
返回:
Result=TrueResult=True
这个结果可以成为:
RuleRule
的输入:
True→Select(A)True \rightarrow Select(A)
也可以成为:
NextMethodNextMethod
的输入。
因此:
调用结果不是终点,而可以成为下一次结构调用的输入。
5.32 能力调用的结果类型
调用结果可以是:
对象
Result=ProductAResult=ProductA
属性值
Result=29.99Result=29.99
状态
Result=AvailableResult=Available
判断
Result=TrueResult=True
集合
Result={A,B,C}Result=\{A,B,C\}
排序结果
Result=[B,A,C]Result=[B,A,C]
新知识
Result=NewKnowledgeResult=NewKnowledge
新能力需求
Result=KnowledgeGapResult=KnowledgeGap
因此能力调用的输出本身也可以成为结构。
5.33 能力调用失败
能力调用并不一定成功。
可能出现:
对象不存在
ObjectNotFoundObjectNotFound
属性不存在
AttributeNotFoundAttributeNotFound
知识不足
KnowledgeMissingKnowledgeMissing
方法不存在
MethodMissingMethodMissing
参数不完整
ParameterMissingParameterMissing
条件不满足
ConditionFalseConditionFalse
运算无法执行
OperationFailureOperationFailure
这些错误不能简单看作程序错误。
在结构智能理论中,它们还表示:
当前能力结构与当前任务之间存在结构缺口。
5.34 能力调用失败与学习
如果能力调用失败:
InvocationFailureInvocationFailure
系统可以进一步判断原因。
例如:
KnowledgeMissingKnowledgeMissing
则:
KnowledgeLearningKnowledgeLearning
如果:
MethodMissingMethodMissing
则:
MethodFormationMethodFormation
如果:
CapabilityMissingCapabilityMissing
则:
CapabilityFormationCapabilityFormation
因此:
InvocationFailure→GapDetection→LearningInvocationFailure \rightarrow GapDetection \rightarrow Learning
能力调用本身成为学习反馈的重要来源。
5.35 能力调用与反馈
成功调用:
Capability→Result→Validation=TrueCapability \rightarrow Result \rightarrow Validation=True
可以强化已有能力结构。
失败调用:
Capability→Result→Validation=FalseCapability \rightarrow Result \rightarrow Validation=False
则需要检查:
KnowledgeKnowledge ObjectObject AttributeAttribute MethodMethod OperationOperation
中的哪个结构出现问题。
因此:
Feedback→StructureCorrectionFeedback \rightarrow StructureCorrection
最终:
CapabilityStructurenewCapabilityStructure_{new}
可以比原来的能力结构更加完整。
5.36 能力调用的递归性
能力调用可以递归进行。
例如:
CapabilityACapability_A
调用:
CapabilityBCapability_B
而:
CapabilityBCapability_B
又调用:
CapabilityCCapability_C
于是:
A→B→CA \rightarrow B \rightarrow C
如果 C 继续调用 D:
A→B→C→DA \rightarrow B \rightarrow C \rightarrow D
因此复杂任务可以通过能力调用递归分解。
这意味着:
复杂能力可以通过调用更基础的能力逐层实现。
5.37 能力调用的组合性
能力调用还具有组合性。
例如:
C1→C2C_1 \rightarrow C_2
和:
C3→C4C_3 \rightarrow C_4
可以根据任务组合成:
C1→C2→C3→C4C_1 \rightarrow C_2 \rightarrow C_3 \rightarrow C_4
如果各能力之间的输入输出结构匹配,就可以形成新的能力执行链。
因此:
CapabilityComposition→NewCapabilityExecutionPathCapabilityComposition \rightarrow NewCapabilityExecutionPath
5.38 能力调用与结构智能
能力调用使结构智能真正进入“执行”。
完整关系为:
Element→Structure→Knowledge→Capability→Invocation→Method→Operation→ResultElement \rightarrow Structure \rightarrow Knowledge \rightarrow Capability \rightarrow Invocation \rightarrow Method \rightarrow Operation \rightarrow Result
因此:
能力调用是结构智能从静态结构进入动态结构运算的核心机制。
没有能力调用:
KnowledgeKnowledge
只能保持为静态结构。
有了能力调用:
Knowledge→OperationKnowledge \rightarrow Operation
知识才真正进入问题处理过程。
5.39 能力调用的统一模型
综合本章,可以建立能力调用统一模型:
CI=(C,S,I,P,Cd,O,R,V)\boxed{ CI= (C,S,I,P,Cd,O,R,V) }
其中:
- CC:Capability,能力;
- SS:Structure,被调用结构;
- II:Input,输入;
- PP:Parameter,参数;
- CdCd:Condition,条件;
- OO:Operation,运算;
- RR:Result,结果;
- VV:Validation,验证。
执行过程:
Capability→StructureSelection→Instance→ParameterBinding→Operation→Result→ValidationCapability \rightarrow StructureSelection \rightarrow Instance \rightarrow ParameterBinding \rightarrow Operation \rightarrow Result \rightarrow Validation
5.40 能力调用的完整结构链
最终,一个复杂能力的调用可以表示为:
Requirement→Capability→Knowledge→Object→Attribute→Value→Method→Parameter→Operation→Result→Validation\boxed{ Requirement \rightarrow Capability \rightarrow Knowledge \rightarrow Object \rightarrow Attribute \rightarrow Value \rightarrow Method \rightarrow Parameter \rightarrow Operation \rightarrow Result \rightarrow Validation }
如果结果需要进一步处理:
Result→NextCapabilityResult \rightarrow NextCapability
如果结果形成新的知识:
Result→NewKnowledgeResult \rightarrow NewKnowledge
如果发现结构缺口:
Result→KnowledgeGap/MethodGap/CapabilityGapResult \rightarrow KnowledgeGap/MethodGap/CapabilityGap
因此,能力调用不仅是执行机制,同时也是学习、知识生成和能力扩展的连接机制。
5.41 本章核心结论
本章建立了 WSaiOS-SI 的能力调用理论。
能力匹配解决:
调用什么能力。
能力调用解决:
这个能力如何实际工作。
能力调用不是简单访问数据,而是一个完整的结构调用过程。
其核心关系为:
Capability→Knowledge→Object→Attribute→Method→Operation\boxed{ Capability \rightarrow Knowledge \rightarrow Object \rightarrow Attribute \rightarrow Method \rightarrow Operation }
但在实际执行过程中,各结构之间可以根据任务动态组织。
能力调用知识,是为了获得当前任务所需要的知识结构。
能力调用对象,是为了确定当前处理的具体对象实例。
能力调用属性,是为了获得对象中与当前任务有关的结构和值。
能力调用方法,是为了确定问题按照什么执行路径处理。
能力调用运算结构,是为了真正对结构和参数进行比较、计算、判断、匹配、排序、筛选、验证等操作。
因此可以建立三个重要层次:
能力=组织什么\boxed{ 能力 = 组织什么 } 方法=按什么路径组织\boxed{ 方法 = 按什么路径组织 } 运算=对什么进行什么操作\boxed{ 运算 = 对什么进行什么操作 }
三者形成:
Capability→Method→Operation\boxed{ Capability \rightarrow Method \rightarrow Operation }
而知识、对象和属性为这个执行过程提供实际结构和数据:
Knowledge→Object→Attribute→Value\boxed{ Knowledge \rightarrow Object \rightarrow Attribute \rightarrow Value }
最终两个结构链汇合:
Capability→Knowledge/Object→Attribute/Value→Method→Operation→Result\boxed{ Capability \rightarrow Knowledge/Object \rightarrow Attribute/Value \rightarrow Method \rightarrow Operation \rightarrow Result }
进一步形成完整的结构智能执行过程:
需求→能力匹配→能力调用→知识调用→对象调用→属性调用→方法调用→运算→结果→验证\boxed{ 需求 \rightarrow 能力匹配 \rightarrow 能力调用 \rightarrow 知识调用 \rightarrow 对象调用 \rightarrow 属性调用 \rightarrow 方法调用 \rightarrow 运算 \rightarrow 结果 \rightarrow 验证 }
如果调用失败,则形成:
调用失败→结构缺口识别→知识补充/方法形成/能力扩展→重新调用\boxed{ 调用失败 \rightarrow 结构缺口识别 \rightarrow 知识补充/方法形成/能力扩展 \rightarrow 重新调用 }
因此,能力调用不仅是能力运行的执行机制,也是 WSaiOS-SI 中:
- 知识使用;
- 对象处理;
- 属性运算;
- 方法执行;
- 运算结构调用;
- 结果产生;
- 结构反馈;
- 能力扩展;
之间的统一连接机制。
由此,WSaiOS-SI形成从需求选择能力到能力调用结构的连续理论:
需求→需求结构→能力匹配→能力结构→能力调用→结构运算→结果\boxed{ 需求 \rightarrow 需求结构 \rightarrow 能力匹配 \rightarrow 能力结构 \rightarrow 能力调用 \rightarrow 结构运算 \rightarrow 结果 }
这意味着,结构智能中的“能力”并不是一个静态标签,而是一种能够主动组织和调用其他结构完成任务的可执行结构。