inria.meije.rc.sugarcubes
Interface Task


public interface Task

Tasks are simple atomic actions executed between two instant. For example, it is typically a way to implement video buffer swap at an appropriate moment in the execution of a reactive system (typically at the end of an instant).
To implement an inter-instant task the programmer must implement that interface. Tasks are added to a reactive Machine using the ReactiveEngine interface.

See Also:
ReactiveEngine.addTask(inria.meije.rc.sugarcubes.Task, boolean)

Field Summary
static boolean AFTER_REACTION
          Boolean value specifying that the task needs to be executed before the execution of an instant.
static boolean BEFORE_REACTION
          Boolean value specifying that the task needs to be executed after the execution of an instant.
 
Method Summary
 void doIt()
          Method in which the task is perfomed.
 

Field Detail

AFTER_REACTION

public static final boolean AFTER_REACTION
Boolean value specifying that the task needs to be executed before the execution of an instant.

BEFORE_REACTION

public static final boolean BEFORE_REACTION
Boolean value specifying that the task needs to be executed after the execution of an instant.
Method Detail

doIt

public void doIt()
Method in which the task is perfomed.
The programmer needs to implement this method. It is called by the reactive machine at the proper moment of the execution of the system to perform the task.