public class RealTimeEventWrapper
extends java.lang.Object
Constructor and Description |
---|
RealTimeEventWrapper(ExternalEvent externalEvent)
Creates an real time wrapper for an external event.
|
RealTimeEventWrapper(ExternalEvent externalEvent,
long nanoTimeStamp)
Creates an real time wrapper for an external event.
|
Modifier and Type | Method and Description |
---|---|
long |
getNanos()
Returns the nanosecond timestamp associated with the encapsulated ExternalEvent
|
void |
realTimeSchedule()
Schedules the external event to happen at the simulation time equivalent
to the nanosecond timestamp of this RealTimeEventWrapper.
|
void |
setNanos(long nanos)
Sets the nanosecond timestamp of this RealTimeEventWrapper.
|
public RealTimeEventWrapper(ExternalEvent externalEvent)
public RealTimeEventWrapper(ExternalEvent externalEvent, long nanoTimeStamp)
public void realTimeSchedule()
public void setNanos(long nanos)
public long getNanos()