public class GatingTimedEvent extends AbstractTimedEvent
_endTime, _hasAborted, _hasFired, _startTime, _toString
Constructor and Description |
---|
GatingTimedEvent(double start,
double end) |
GatingTimedEvent(double start,
double end,
java.lang.Object creator) |
GatingTimedEvent(double start,
double end,
java.lang.Object creator,
java.lang.Runnable onBlock) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
called when the event is to be aborted
|
void |
fire(double now)
called when this event should be fired..
|
java.lang.Object |
getCreator() |
boolean |
isBlocked()
is there currently a model blocked?
|
boolean |
isExternalWaiting() |
void |
release()
release the gate.
|
java.lang.String |
toString()
Description of the Method
|
void |
waitForModel()
wait until either release is called, or the model reaches fire.
|
boolean |
willBlock()
will a model reaching the fire method block?
|
getEndTime, getStartTime, hasAborted, hasFired, setTimes, shouldWarnOnTimeSlips
public GatingTimedEvent(double start, double end)
public GatingTimedEvent(double start, double end, java.lang.Object creator)
public GatingTimedEvent(double start, double end, java.lang.Object creator, java.lang.Runnable onBlock)
public java.lang.Object getCreator()
public void abort()
AbstractTimedEvent
abort
in interface ITimedEvent
abort
in class AbstractTimedEvent
public void fire(double now)
AbstractTimedEvent
fire
in interface ITimedEvent
fire
in class AbstractTimedEvent
now
- Description of the Parameterpublic void waitForModel() throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean isExternalWaiting()
public boolean isBlocked()
public boolean willBlock()
public void release()
public java.lang.String toString()
AbstractTimedEvent
toString
in class AbstractTimedEvent