public abstract class AbstractSendableEvent extends java.lang.Object implements SendableEvent
Constructor and Description |
---|
AbstractSendableEvent(long timestamp,
long scheduleSlot)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
long |
getScheduleSlot()
Get the schedule slot for the entity that created this event
|
long |
getSendTime()
Get the send time of this event, relative to all the other events sent or read by the same entity
|
abstract void |
send(AbstractSender sender)
Send the event into the runtime.
|
public AbstractSendableEvent(long timestamp, long scheduleSlot)
timestamp
- to sendscheduleSlot
- the schedule slot assigned by scheduling servicepublic abstract void send(AbstractSender sender)
SendableEvent
send
in interface SendableEvent
sender
- - the sender to send an eventpublic long getScheduleSlot()
SendableEvent
getScheduleSlot
in interface SendableEvent
public long getSendTime()
SendableEvent
getSendTime
in interface SendableEvent