diff --git a/SMG_NothingIsAll.xcworkspace/xcuserdata/jia.xcuserdatad/UserInterfaceState.xcuserstate b/SMG_NothingIsAll.xcworkspace/xcuserdata/jia.xcuserdatad/UserInterfaceState.xcuserstate index 7e932d6a0..5ed329d70 100644 Binary files a/SMG_NothingIsAll.xcworkspace/xcuserdata/jia.xcuserdatad/UserInterfaceState.xcuserstate and b/SMG_NothingIsAll.xcworkspace/xcuserdata/jia.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/SMG_NothingIsAll.xcworkspace/xcuserdata/jia.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/SMG_NothingIsAll.xcworkspace/xcuserdata/jia.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index dc66882da..efaa0f266 100644 --- a/SMG_NothingIsAll.xcworkspace/xcuserdata/jia.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/SMG_NothingIsAll.xcworkspace/xcuserdata/jia.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -248,7 +248,7 @@ ignoreCount = "0" continueAfterRunningActions = "No" filePath = "SMG_NothingIsAll/AIFoundation/AIThinkingControl/AIThinkingControl.m" - timestampString = "561717925.328015" + timestampString = "561765526.358838" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "610" diff --git a/SMG_NothingIsAll/AIFoundation/AINet/AINetAbsCMV/AINetAbsCMV.m b/SMG_NothingIsAll/AIFoundation/AINet/AINetAbsCMV/AINetAbsCMV.m index adfd79d8c..e088de3cb 100644 --- a/SMG_NothingIsAll/AIFoundation/AINet/AINetAbsCMV/AINetAbsCMV.m +++ b/SMG_NothingIsAll/AIFoundation/AINet/AINetAbsCMV/AINetAbsCMV.m @@ -66,11 +66,11 @@ -(AIAbsCMVNode*) create:(AIKVPointer*)absNode_p aMv_p:(AIKVPointer*)aMv_p bMv_p: //5. 关联conPorts插口 AIPort *aConPort = [[AIPort alloc] init]; aConPort.target_p = aMv_p; - [result_acn addConPorts:aConPort]; + [result_acn addConPorts:aConPort difValue:1]; AIPort *bConPort = [[AIPort alloc] init]; bConPort.target_p = bMv_p; - [result_acn addConPorts:bConPort]; + [result_acn addConPorts:bConPort difValue:1]; //6. 关联absPort插口 AIPort *absNPort = [[AIPort alloc] init]; diff --git a/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.h b/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.h index 3b8f89e2f..9ac23fda7 100644 --- a/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.h +++ b/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.h @@ -22,8 +22,7 @@ * MARK:--------------------添加具象关联-------------------- * 注:从大到小(5,4,3,2,1) */ --(void) addConPorts:(AIPort*)conPort; - +-(void) addConPorts:(AIPort*)conPort difValue:(NSInteger)difValue; -(AIPort*) getConPort:(NSInteger)index; @@ -31,6 +30,7 @@ /** * MARK:--------------------获取conPort-------------------- * @param except_ps : 要排除的pointer数组; + * 注: 被激活的AIPort自动strong.value + 1; */ -(AIPort*) getConPortWithExcept:(NSArray*)except_ps; diff --git a/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.m b/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.m index c28151fed..c9d90e17c 100644 --- a/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.m +++ b/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.m @@ -26,11 +26,12 @@ - (NSMutableArray *)conPorts{ * MARK:--------------------添加具象关联-------------------- * 注:从大到小(5,4,3,2,1) */ --(void) addConPorts:(AIPort*)conPort{ +-(void) addConPorts:(AIPort*)conPort difValue:(NSInteger)difValue{ //1. 数据检查 if (conPort == nil) { return; } + conPort.strong.value += difValue; //2. 去重 for (NSInteger i = 0; i < self.conPorts.count; i++) { @@ -72,6 +73,7 @@ -(AIPort*) getConPortWithExcept:(NSArray*)except_ps{ } } if (!excepted) { + conPort.strong.value += 1;//被激活强度+1; return conPort; } } diff --git a/SMG_NothingIsAll/AIFoundation/AINet/AIPort.h b/SMG_NothingIsAll/AIFoundation/AINet/AIPort.h index 34661fdc1..4e76e34ae 100644 --- a/SMG_NothingIsAll/AIFoundation/AINet/AIPort.h +++ b/SMG_NothingIsAll/AIFoundation/AINet/AIPort.h @@ -29,6 +29,7 @@ * 注:为简化设计; * 1. 由AINode.xxxPorts替代了AILineType * 2. 由AIPortStrong替代了AILineStrong + * 3. 互相关联,不表示强度值一致,所以A与B关联,有可能A的强度为3,B却为100; */ @interface AIPortStrong : NSObject