public double handleStep(double currentTime) {
synchronized (this) {
+ if (stopped)
+ return Double.POSITIVE_INFINITY;
+
this.currentTime = currentTime;
{
ArrayList<Function1<Tuple0, Object>> temp = scheduledNow;
synchronized (this) {
List<Function1<StopReason, Object>> stopFunctions = new ArrayList<>(scheduledWhenStopped);
scheduledWhenStopped.clear();
+
+ scheduledNextStep.clear();
+ scheduledAt.clear();
SCLContext context = SCLContext.getCurrent();
Object oldActionContext = context.put("sequenceAction", this);