|
||||||||||
| 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.TransitionRate
public class TransitionRate
Statechart transition with trigger of type rate. Such transition is executed with
the timeout distributed exponentially with the parameter rate (counted from the
moment the statechart came to the transition's source state), i.e. if
the rate is 5, the timeout will on average be 1/5 of thr time unit. If the rate
changes dynamically, the timeout gets re-evaluated; such changes may
only be noticed by TransitionRate if onChange() is called for the active object.
If the guard appears to be false when the transition is about to execute,
it is not taken and becomes inactive until the rate changes.
Memory: sizeof(Transition) + 8 = 30 bytes
| Constructor Summary | |
|---|---|
TransitionRate(ActiveObject ao)
Constructs the transition object with Rate 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 rate tranistion as specified by the user. |
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, onDestroy, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransitionRate(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 Transition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||