|
||||||||||
| 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.EventRate
public class EventRate
Event with trigger of type rate. Such event is executed periodically
with time intervals distributed exponentially with the parameter rate, i.e. if
the rate is 5, the event will occur on average 5 times per time unit. If the rate
changes dynamically, the event occurrence gets re-scheduled; such changes may
only be noticed by EventRate if onChange() is called for the active object.
Memory: sizeof(Event) + 8 = 30 bytes
| Constructor Summary | |
|---|---|
EventRate(ActiveObject ao)
Constructs the event object with Rate trigger. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of the rate event as specified by the user. |
void |
onChange()
Should be called when something changes in the object (and probably the rate changes). |
void |
reset()
Cancels the currently scheduled event, if any. |
void |
restart()
Cancels the currently scheduled event, if any, and schedules the next occurrence according to the Rate. |
void |
start()
Should be called when 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, onDestroy, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventRate(ActiveObject ao)
ao - active object where this event belongs to| Method Detail |
|---|
public java.lang.String getName()
getName in class EventOriginatorpublic void reset()
restart() is called.
reset in class Eventpublic void restart()
restart in class Eventpublic void start()
start in class Eventpublic void onChange()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||