public class ResourceFailedEvent extends AbstractSimEventDelegator<ScheduledResource>
Constructor and Description |
---|
ResourceFailedEvent(SimuComModel model,
String name)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
eventRoutine(ScheduledResource who)
Executes the simulation logic associated with this event.
|
ResourceRepairedEvent |
getRepairedEvent()
Retrieves the corresponding repair event.
|
void |
setRepairedEvent(ResourceRepairedEvent repairedEvent)
Sets the corresponding repair event.
|
removeEvent, schedule, scheduledAtTime
getModel, getName
public ResourceFailedEvent(SimuComModel model, String name)
model
- the owner modelname
- the name of the eventpublic void eventRoutine(ScheduledResource 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<ScheduledResource>
who
- the entity associated with this eventpublic ResourceRepairedEvent getRepairedEvent()
public void setRepairedEvent(ResourceRepairedEvent repairedEvent)
repairedEvent
- the repair event