|
||||||||||
| 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.EventTimeout
public class EventTimeout
Event with trigger of type timeout. The event occurs exactly in
timeout time after it is started. Optionally, the event may be made cylcic
and set to occur at startup.
Memory: sizeof(Event) + 8 bytes = 30 bytes
| Constructor Summary | |
|---|---|
EventTimeout(ActiveObject ao)
Constructs the event object with Timeout trigger. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of the timeout event as specified by the user. |
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 Timeout specified |
void |
restart(double timeout)
Cancels the currently scheduled event, if any, and schedules the next occurrence in time t. |
void |
restartTo(java.util.Date date)
Cancels the currently scheduled event, if any, and schedules the next occurrence at the (absolute) model date date. |
void |
restartTo(double time)
Cancels the currently scheduled event, if any, and schedules the next occurrence at the (absolute) model time time. |
void |
resume()
Re-schedules the previously suspended event in the remaining time. |
void |
start()
Should be called whe the active objects starts. |
void |
suspend()
Cancels the currently scheduled event, if any, and remembers the remaining time so that it can be resumed by calling resume(). |
| 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 EventTimeout(ActiveObject ao)
ao - active object where this event belongs to| Method Detail |
|---|
public java.lang.String getName()
getName in class EventOriginatorpublic void reset()
restart() or
restart(double) is called.
reset in class Eventpublic void restart()
restart in class Eventpublic void restart(double timeout)
t. If the event is
Cyclic, it will then continue occurring at the original timeout/rate.
timeout - time (from now) in which the event will be scheduled.restartTo(double)public void restartTo(double time)
time. If the event is
Cyclic, it will then continue occurring at the original timeout/rate.restart( time - time() ),
but it is different because it eliminates numeric calculation
error which may occur on any machine.
time - model time (absolute) at which the event
will be scheduled.public void restartTo(java.util.Date date)
date. If the event is
Cyclic, it will then continue occurring at the original timeout/rate.restart( toTimeout(...) ),
but it is different because it eliminates numeric calculation
error which may occur on any machine.
date - model date at which the event
will be scheduled.public void suspend()
resume().
If the event is not scheduled at the time of calling suspend(),
the subsequent resume will result in nothing.reset().
public void resume()
public void start()
start in class Event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||