|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface allows the programmer to handle a reactive machine.
A reactive machine is instantiated using dedicated methods of the class SC
.
Method Summary | |
void |
addProgram(Program aComponent)
This method allows one to dynamically add copies of programs into the reactive machine. |
void |
addTask(Task t,
boolean beforeReaction)
This method allows the addition of inter-instant tasks. |
Identifier |
cubeDestructionIdentifier(java.lang.String aCubeName)
This method returns an Identifier referencing the destruction event of a Cube whose the name is given as argument, using the appropriate type of identifiers internally used in the machine. |
void |
generateEvent(Identifier eventName,
Argument[] args)
This method generates an event in the machine. |
Program |
getFrozenProgram(java.lang.String programName)
This method retrieves the residual of a frozen program according to its name. |
Program |
getProgramCopy()
This method returns a copy of the program executed by the machine. |
Identifier |
identifierFromString(java.lang.String aString)
This method returns an Identifier corresponding to the string parameter, using the appropriate type of identifiers internally used by the machine. |
boolean |
react()
This method makes the machine react, executing one instant of its program. |
void |
removeTask(Task t)
This method removes inter-instant tasks. |
void |
setMinimumTimeOfReactions(long timeInMillisecond)
This method allows the user to specify a minimum duration for an instant in milliseconds. |
Method Detail |
public void addProgram(Program aComponent)
public void addTask(Task t, boolean beforeReaction)
public Identifier cubeDestructionIdentifier(java.lang.String aCubeName)
Identifier
referencing the destruction event of a Cube whose the name is given as argument, using the appropriate type of identifiers internally used in the machine.SC.destroy(java.lang.String)
public void generateEvent(Identifier eventName, Argument[] args)
react()
public Program getFrozenProgram(java.lang.String programName)
public Program getProgramCopy()
public Identifier identifierFromString(java.lang.String aString)
Identifier
corresponding to the string parameter, using the appropriate type of identifiers internally used by the machine.public boolean react()
public void removeTask(Task t)
public void setMinimumTimeOfReactions(long timeInMillisecond)
This method allows the user to specify a minimum duration for an instant in milliseconds.
Note: This specify only a minimal duration for an instant. No guaranty is provided about the maximum duration of the instant.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |