|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.EventOriginator
com.xj.anylogic.engine.Transition
com.xj.anylogic.engine.TransitionCondition
public class TransitionCondition
Statechart transition with trigger of type condition. The transition is executed when the
condition becomes true. If the active object has continuously changing variables,
the numeric engine constantly monitors the condition. In purely discrete models
the condition is tested when something changes in the active obejct, i.e. when
onChange() is called. If the guard appears to be false when the transition is about
to execute, it is not taken and becomes inactive until the next next condition evaluation.
Memory: sizeof(Transition) = 22 bytes
| Constructor Summary | |
|---|---|
TransitionCondition(ActiveObject ao)
Constructs the transition object with Condition trigger. |
|
| Method Summary | |
|---|---|
void |
cancel()
Should be called when this transition becomes deactivated e.g. as a result of alternative transition being taken. |
java.lang.String |
getName()
Returns the name of the condition tranistion as specified by the user. |
void |
onDestroy()
Discards the scheduled event, if any (deletes it from the engine). |
void |
start()
Should be called whe the statechart enters to the transition's source state. |
| Methods inherited from class com.xj.anylogic.engine.Transition |
|---|
restoreOwner |
| Methods inherited from class com.xj.anylogic.engine.EventOriginator |
|---|
getActiveObject, getFullName, getRest, isActive, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransitionCondition(ActiveObject ao)
ao - active object where this transition belongs to| Method Detail |
|---|
public java.lang.String getName()
getName in class EventOriginatorpublic void start()
public void cancel()
cancel in class Transitionpublic void onDestroy()
EventOriginator
onDestroy in class EventOriginator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||