public class PassiveResourceTimeoutEvent extends AbstractSimEventDelegator<SimpleWaitingProcess>
Constructor and Description |
---|
PassiveResourceTimeoutEvent(SimuComModel simuComModel,
SchedulerModel model,
SimSimpleFairPassiveResource resource,
SimpleWaitingProcess process)
Creates a new timeout event.
|
Modifier and Type | Method and Description |
---|---|
void |
eventRoutine(SimpleWaitingProcess who)
Executes the simulation logic associated with this event.
|
SimpleWaitingProcess |
getProcess()
Retrieves the waiting process.
|
SimSimpleFairPassiveResource |
getResource()
Retrieves the passive resource.
|
removeEvent, schedule, scheduledAtTime
getModel, getName
public PassiveResourceTimeoutEvent(SimuComModel simuComModel, SchedulerModel model, SimSimpleFairPassiveResource resource, SimpleWaitingProcess process)
model
- the SimuCom modelresource
- the involved passive resourceprocess
- the waiting processpublic void eventRoutine(SimpleWaitingProcess who)
AbstractSimEventDelegator
Notice, that this method is not intended to be called by clients. Instead, the event scheduler of the respective simulation library invokes this method as soon as the simulation is reached at which the event has been scheduled.
eventRoutine
in class AbstractSimEventDelegator<SimpleWaitingProcess>
who
- the entity associated with this eventpublic SimpleWaitingProcess getProcess()
public SimSimpleFairPassiveResource getResource()