]> gerrit.simantics Code Review - simantics/platform.git/blob
d5b64762e096029f666e6c4d5bd25b23ab312424
[simantics/platform.git] /
1 package org.simantics.simulation.sequences.action;
2
3 import org.simantics.databoard.binding.Binding;
4 import org.simantics.scl.runtime.function.Function1;
5 import org.simantics.scl.runtime.tuple.Tuple0;
6
7 public interface ActionContext {
8     double time();
9     Object get(String variableName, Binding binding);
10     void set(String variableName, Object value, Binding binding);
11     void scheduleNow(Function1<Tuple0,Object> continuation);
12     void scheduleNextStep(Function1<Tuple0,Object> continuation);
13     void scheduleAt(double time, Function1<Tuple0,Object> continuation);
14     void stop();
15 }