Skip to content

Commit 05007e0

Browse files
committed
1. mv的absPort&conPort强度为0的bugfix; 2. 激活神经元强度+1;
1 parent 968c291 commit 05007e0

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

SMG_NothingIsAll.xcworkspace/xcuserdata/jia.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
ignoreCount = "0"
249249
continueAfterRunningActions = "No"
250250
filePath = "SMG_NothingIsAll/AIFoundation/AIThinkingControl/AIThinkingControl.m"
251-
timestampString = "561717925.328015"
251+
timestampString = "561765526.358838"
252252
startingColumnNumber = "9223372036854775807"
253253
endingColumnNumber = "9223372036854775807"
254254
startingLineNumber = "610"

SMG_NothingIsAll/AIFoundation/AINet/AINetAbsCMV/AINetAbsCMV.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ -(AIAbsCMVNode*) create:(AIKVPointer*)absNode_p aMv_p:(AIKVPointer*)aMv_p bMv_p:
6666
//5. 关联conPorts插口
6767
AIPort *aConPort = [[AIPort alloc] init];
6868
aConPort.target_p = aMv_p;
69-
[result_acn addConPorts:aConPort];
69+
[result_acn addConPorts:aConPort difValue:1];
7070

7171
AIPort *bConPort = [[AIPort alloc] init];
7272
bConPort.target_p = bMv_p;
73-
[result_acn addConPorts:bConPort];
73+
[result_acn addConPorts:bConPort difValue:1];
7474

7575
//6. 关联absPort插口
7676
AIPort *absNPort = [[AIPort alloc] init];

SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
* MARK:--------------------添加具象关联--------------------
2323
* 注:从大到小(5,4,3,2,1)
2424
*/
25-
-(void) addConPorts:(AIPort*)conPort;
26-
25+
-(void) addConPorts:(AIPort*)conPort difValue:(NSInteger)difValue;
2726

2827
-(AIPort*) getConPort:(NSInteger)index;
2928

3029

3130
/**
3231
* MARK:--------------------获取conPort--------------------
3332
* @param except_ps : 要排除的pointer数组;
33+
* 注: 被激活的AIPort自动strong.value + 1;
3434
*/
3535
-(AIPort*) getConPortWithExcept:(NSArray*)except_ps;
3636

SMG_NothingIsAll/AIFoundation/AINet/AINode/AIAbsCMVNode.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ - (NSMutableArray *)conPorts{
2626
* MARK:--------------------添加具象关联--------------------
2727
* 注:从大到小(5,4,3,2,1)
2828
*/
29-
-(void) addConPorts:(AIPort*)conPort{
29+
-(void) addConPorts:(AIPort*)conPort difValue:(NSInteger)difValue{
3030
//1. 数据检查
3131
if (conPort == nil) {
3232
return;
3333
}
34+
conPort.strong.value += difValue;
3435

3536
//2. 去重
3637
for (NSInteger i = 0; i < self.conPorts.count; i++) {
@@ -72,6 +73,7 @@ -(AIPort*) getConPortWithExcept:(NSArray*)except_ps{
7273
}
7374
}
7475
if (!excepted) {
76+
conPort.strong.value += 1;//被激活强度+1;
7577
return conPort;
7678
}
7779
}

SMG_NothingIsAll/AIFoundation/AINet/AIPort.h

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* 注:为简化设计;
3030
* 1. 由AINode.xxxPorts替代了AILineType
3131
* 2. 由AIPortStrong替代了AILineStrong
32+
* 3. 互相关联,不表示强度值一致,所以A与B关联,有可能A的强度为3,B却为100;
3233
*/
3334
@interface AIPortStrong : NSObject <NSCoding>
3435

0 commit comments

Comments
 (0)