public class ResourceRepairedEvent extends AbstractSimEventDelegator<ScheduledResource>
Constructor and Description |
---|
ResourceRepairedEvent(SimuComModel model,
String name)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
eventRoutine(ScheduledResource who)
Executes the simulation logic associated with this event.
|
ResourceFailedEvent |
getFailedEvent()
Retrieves the corresponding failure event.
|
void |
setFailedEvent(ResourceFailedEvent failedEvent)
Sets the corresponding failure event.
|
removeEvent, schedule, scheduledAtTime
getModel, getName
public ResourceRepairedEvent(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 ResourceFailedEvent getFailedEvent()
public void setFailedEvent(ResourceFailedEvent failedEvent)
failedEvent
- the failure event