Update: Shell.c: support for temporal occurrence time based Q/A
@@ -79,6 +79,20 @@ void Shell_Start()
goto Continue;
}
}
+ if(isEvent)
+ {
+ if(c->belief_spike.type != EVENT_TYPE_DELETED)
+ {
+ Truth potential_best_truth = Truth_Projection(c->belief_spike.truth, c->belief_spike.occurrenceTime, currentTime);
+ if(Truth_Expectation(potential_best_truth) > Truth_Expectation(best_truth))
+ {
+ best_truth = potential_best_truth;
+ best_term = c->belief_spike.term;
+ }
+ }
+ }
+ else
+ {
if(c->belief.type != EVENT_TYPE_DELETED)
{
if(Truth_Expectation(c->belief.truth) > Truth_Expectation(best_truth))
@@ -87,6 +101,7 @@ void Shell_Start()
best_term = c->belief.term;
}
}
+ }
Continue:;
}
fputs("Answer: ", stdout);
