|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.EventOriginator
public abstract class EventOriginator
Base class for all constructs in AnyLogic modeling language that are able
to schedule discrete events, like Event, DynamicEvent and Transition.
Memory: sizeof(Object) + 8 bytes = 22 bytes
| Method Summary | |
|---|---|
void |
cancel()
Deprecated. User should not call this method for events, call reset() instead |
ActiveObject |
getActiveObject()
Returns the active object that owns the event originator. |
java.lang.String |
getFullName()
Returns the name of the event originator prefixed by the full name of its active object. |
abstract java.lang.String |
getName()
Returns the name of the event originator, i.e. the name of an event or a transition object specified by the user. |
double |
getRest()
Returns the time remaining before the scheduled occurrence of the event, or Double.POSITIVE_INFINITY if the event is not scheduled. |
boolean |
isActive()
Returns true if the event is currently scheduled by this event
originator, false otherwise. |
void |
onDestroy()
Discards the scheduled event, if any (deletes it from the engine). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public abstract java.lang.String getName()
public java.lang.String getFullName()
public java.lang.String toString()
toString in class java.lang.Objectpublic ActiveObject getActiveObject()
public boolean isActive()
true if the event is currently scheduled by this event
originator, false otherwise.
public double getRest()
Double.POSITIVE_INFINITY if the event is not scheduled.
@Deprecated public void cancel()
reset() instead
public void onDestroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||