Skip to content

Commit

Permalink
对TC调用更多可视化,方便调试;
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaxiaogang committed Oct 20, 2018
1 parent ee2942c commit 968c291
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SMG_NothingIsAll/AIFoundation/AIThinkingControl/AIThinkingControl.m"
timestampString = "561699327.120942"
timestampString = "561717925.328015"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "609"
endingLineNumber = "609"
startingLineNumber = "610"
endingLineNumber = "610"
landmarkName = "-dataOut_AssociativeConcreteData_TryOut:exceptTryOut_ps:"
landmarkType = "7">
</BreakpointContent>
Expand Down
2 changes: 1 addition & 1 deletion SMG_NothingIsAll/AIFoundation/AINet/AIPort.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@property (strong,nonatomic) AIPointer *target_p; //指向目标的地址
@property (strong,nonatomic) AIPortStrong *strong;

-(NSComparisonResult) compare:(AIPort*)port;//类比port:1级强度,2级pointerId;
//-(NSComparisonResult) compare:(AIPort*)port;//类比port:1级强度,2级pointerId;
-(void) strongPlus;

@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ -(void) dataIn_AssociativeData:(NSArray*)algsArr {
[self dataOut_AssociativeExperience];

//6. log
NSLog(@"____联想结果:%@ delta:%ld urgentTo:%ld",cmvNode.pointer.algsType,(long)delta,(long)urgentTo);
NSLog(@"联想到cmvNode: %@",[NVUtils getCmvModelDesc_ByCmvNode:cmvNode]);
}else if(ISOK(referNode, AINetAbsNode.class)){
//联想到数据网络节点
//TODO>>>>将结果存到shortCache或thinkFeedCache//或先不添加,随后有需要时,再说;
Expand Down Expand Up @@ -473,8 +473,8 @@ -(void) dataOut_AssociativeConcreteData:(ExpCacheModel*)expModel complete:(void(
if (expOutFoNode != nil) {
[self dataOut_CheckScore_ExpOut:expOutFoNode complete:^(CGFloat score, NSArray *out_ps) {
expModel.order += score;//联想对当前expModel的order影响;
NSLog(@" >> 执行经验输出: (%@) (%f) (%@)",score >= 3 ? @"成功" : @"失败",score,[NVUtils convertValuePs2Str:out_ps]);
if (score >= 3) {
NSLog(@" >> 执行经验输出");
complete(true,out_ps,expModelInvalid);
invokedComplete = true;
}
Expand All @@ -485,8 +485,8 @@ -(void) dataOut_AssociativeConcreteData:(ExpCacheModel*)expModel complete:(void(
if (tryOutAbsNode != nil) {
[self dataOut_CheckScore_TryOut:tryOutAbsNode complete:^(CGFloat score, NSArray *out_ps) {
expModel.order += score;//联想对当前expModel的order影响;
NSLog(@" >> 执行尝试输出: (%@) (%f) (%@)",score > 10 ? @"成功" : @"失败",score,[NVUtils convertValuePs2Str:out_ps]);
if (score > 10) {
NSLog(@" >> 执行尝试输出");
complete(true,out_ps,expModelInvalid);
invokedComplete = true;
}
Expand Down Expand Up @@ -545,7 +545,7 @@ -(AIFrontOrderNode*) dataOut_AssociativeConcreteData_ExpOut:(NSObject*)baseMvNod
AIFrontOrderNode *foNode = [ThinkingUtils getFoNodeFromCmvNode:cmvNode];
if (foNode) {
[except_ps addObject:cmvNode.pointer];
NSLog(@"具象之旅_经验输出_foCmv模型: %@",[NVUtils getCmvModelDesc:foNode cmvNode:cmvNode]);
NSLog(@" >> 找到经验cmvModel: %@",[NVUtils getCmvModelDesc:foNode cmvNode:cmvNode]);
return foNode;
}else{
//3. 前因时序列为null的异常;
Expand All @@ -565,7 +565,8 @@ -(AIFrontOrderNode*) dataOut_AssociativeConcreteData_ExpOut:(NSObject*)baseMvNod
}
}else{
//7. 找到conPort,则递归判断类型是否foNode;
NSObject *findConNode = [SMGUtils searchObjectForPointer:findConPort.target_p fileName:FILENAME_Node];
AICMVNodeBase *findConNode = [SMGUtils searchObjectForPointer:findConPort.target_p fileName:FILENAME_Node];
NSLog(@" >> 找到经验cmvNode: %@ 强度: %ld",[NVUtils getCmvNodeDesc:findConNode],(long)findConPort.strong.value);
return [self dataOut_AssociativeConcreteData_ExpOut:baseMvNode checkMvNode:findConNode checkMvNode_p:findConPort.target_p except_ps:except_ps];
}
}else{
Expand Down
2 changes: 1 addition & 1 deletion SMG_NothingIsAll/AIFoundation/SMGConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
//MARK:===============================================================
#define cAssDataLimit 2 //应以当前整体思维活跃度,变化为1-3左右;
#define cMinEnergy 0
#define cMaxEnergy 3
#define cMaxEnergy 5

0 comments on commit 968c291

Please sign in to comment.