From c7a889a466533077c23c0ebfa2e0215ac6afde48 Mon Sep 17 00:00:00 2001 From: Patrick Hammer <patham9@gmail.com> Date: Sat, 7 Apr 2018 07:22:32 -0400 Subject: [PATCH] forgot to commit this class too. --- nars_core/nars/operator/mental/Anticipate.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nars_core/nars/operator/mental/Anticipate.java b/nars_core/nars/operator/mental/Anticipate.java index 3833fa8d6f..b569d2a171 100644 --- a/nars_core/nars/operator/mental/Anticipate.java +++ b/nars_core/nars/operator/mental/Anticipate.java @@ -112,11 +112,11 @@ public class Anticipate extends Operator implements EventObserver { //since there is no way anymore that the observation would support <(&/,a,+4) =/> b> at this time, //also this way it is not applied to early, it seems to be the perfect time to me, //making hopeExpirationWindow parameter entirely osbolete - Interval Int=Interval.interval(aTime-predictionstarted, nal.memory); + Interval Int=new Interval(aTime-predictionstarted); //ok we know the magnitude now, let's now construct a interval with magnitude one higher //(this we can skip because magnitudeToTime allows it without being explicitly constructed) //ok, and what predicted occurence time would that be? because only if now is bigger or equal, didnt happen is true - double expiredate=predictionstarted+Interval.magnitudeToTime(Int.magnitude*Parameters.ANTICIPATION_TOLERANCE, nal.memory.param.duration); + double expiredate=predictionstarted+Int.time*Parameters.ANTICIPATION_TOLERANCE; // boolean didntHappen = (now>=expiredate); @@ -191,7 +191,7 @@ public class Anticipate extends Operator implements EventObserver { return null; //not as mental operator but as fundamental principle } - anticipate(args[1],memory,memory.time()+memory.param.duration.get(), null); + anticipate(args[1],memory,memory.time()+Parameters.DURATION, null); return null; } -- GitLab