|
||||||||||
| 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.Event
com.xj.anylogic.engine.EventCondition
public class EventCondition
Event with trigger of type condition. The event 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.
Memory: sizeof(Event) + 1 byte = 23 bytes
| Constructor Summary | |
|---|---|
EventCondition(ActiveObject ao)
Constructs the event object with Condition trigger. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of the condition event as specified by the user. |
boolean |
isMonitoring()
Returns true if this event is currently monitoring (waiting on) its condition. |
void |
onChange()
Should be called when something changes in the object and probably condition changes. |
void |
onDestroy()
Discards the scheduled event, if any (deletes it from the engine). |
void |
reset()
Cancels the currently scheduled event, if any. |
void |
restart()
Resumes waiting on the condition. |
void |
start()
Should be called whe the active objects starts. |
| Methods inherited from class com.xj.anylogic.engine.Event |
|---|
restoreOwner |
| Methods inherited from class com.xj.anylogic.engine.EventOriginator |
|---|
cancel, getActiveObject, getFullName, getRest, isActive, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventCondition(ActiveObject ao)
ao - active object where this event belongs to| Method Detail |
|---|
public java.lang.String getName()
getName in class EventOriginatorpublic void reset()
restart()).
reset in class Eventpublic void restart()
restart in class Eventpublic boolean isMonitoring()
public void start()
start in class Eventpublic void onChange()
public void onDestroy()
EventOriginator
onDestroy in class EventOriginator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||