|
||||||||||
| 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.DynamicEvent
public class DynamicEvent
This class is a base class for dynamic events created by the user. Dynamic events
are used to schedule any number of concurrent and independent events; a typical
object that uses dynamic event would be a Delay object that can delay arbitrary
number of entities concurrently. The event gets scheduled when a DynamicEvent is
instantiated. Upon execution of the dynamic event the instance is deleted.
When the ActiveObject is destroyed, all dynamic events belonging to it are discarded.
Memory: sizeof(EventOriginator) = 22 bytes + sizeof(HashSet entry - in AO) + user data
| Constructor Summary | |
|---|---|
DynamicEvent(ActiveObject ao,
double dt)
A base class constructor for dynamic events. |
|
| Method Summary | |
|---|---|
void |
execute()
This method should be implemented at the subclass with a necessary call to super.execute() at the beginning. |
java.lang.String |
getName()
Returns the name of the dynamic event - actually, the simple name of the dynamic event class. |
void |
reset()
Discards the scheduled occurrence of the event unregisters this dynamic event at the active object |
| 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 DynamicEvent(ActiveObject ao,
double dt)
ao - active object - event ownerdt - the timeout| Method Detail |
|---|
public java.lang.String getName()
getName in class EventOriginatorpublic void reset()
public void execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||