Update: Also respect the occurrence order in induction, as there can be predicted events as well
@@ -197,9 +197,12 @@ void Cycle_Perform(long currentTime)
Decision_AssumptionOfFailure(op_id, currentTime); //collection of negative evidence, new way
//build link between internal derivations and external event to explain it:
for(int k=0; k<eventsSelected; k++)
+ {
+ if(selectedEvents[k].occurrenceTime < postcondition.occurrenceTime)
{
Cycle_ReinforceLink(&selectedEvents[k], &postcondition);
}
+ }
for(int k=1; k<belief_events.itemsAmount; k++)
{
for(int len2=0; len2<MAX_SEQUENCE_LEN; len2++)
