public class AbstractTimedEvent extends java.lang.Object implements ITimedEvent
Modifier and Type | Field and Description |
---|---|
protected double |
_endTime
Description of the Field
|
protected boolean |
_hasAborted |
protected boolean |
_hasFired |
protected double |
_startTime
Description of the Field
|
protected java.lang.String |
_toString |
Constructor and Description |
---|
AbstractTimedEvent() |
AbstractTimedEvent(double start,
double end) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
called when the event is to be aborted
|
void |
fire(double currentTime)
called when this event should be fired..
|
double |
getEndTime()
When the event should be fired.
|
double |
getStartTime()
when the TimedEvent was posted in simulated time.
|
boolean |
hasAborted()
has this been aborted? aborted events will not be fired
|
boolean |
hasFired() |
void |
setTimes(double start,
double end)
Sets the times attribute of the AbstractTimedEvent object
|
protected boolean |
shouldWarnOnTimeSlips() |
java.lang.String |
toString()
Description of the Method
|
protected boolean _hasAborted
protected boolean _hasFired
protected double _startTime
protected double _endTime
protected java.lang.String _toString
public AbstractTimedEvent()
public AbstractTimedEvent(double start, double end)
public void setTimes(double start, double end)
start
- The new times valueend
- The new times valuepublic double getStartTime()
getStartTime
in interface ITimedEvent
public double getEndTime()
getEndTime
in interface ITimedEvent
protected boolean shouldWarnOnTimeSlips()
public void fire(double currentTime)
fire
in interface ITimedEvent
currentTime
- Description of the Parameterpublic boolean hasFired()
hasFired
in interface ITimedEvent
public void abort()
abort
in interface ITimedEvent
public boolean hasAborted()
ITimedEvent
hasAborted
in interface ITimedEvent
public java.lang.String toString()
toString
in class java.lang.Object