Class ResourceRepairedEvent
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator<ScheduledResource>
-
- de.uka.ipd.sdq.simucomframework.resources.ResourceRepairedEvent
-
- All Implemented Interfaces:
de.uka.ipd.sdq.simulation.abstractsimengine.ISimEvent<ScheduledResource>
public class ResourceRepairedEvent extends de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator<ScheduledResource>
Represents a repair of an AbstractScheduledResource after a failure. After the occurrence of the repair event, the resource is available again until the next failure event occurs.
-
-
Constructor Summary
Constructors Constructor Description ResourceRepairedEvent(SimuComModel model, String name)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
eventRoutine(ScheduledResource who)
ResourceFailedEvent
getFailedEvent()
Retrieves the corresponding failure event.void
setFailedEvent(ResourceFailedEvent failedEvent)
Sets the corresponding failure event.-
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator
removeEvent, schedule, scheduledAtTime
-
-
-
-
Constructor Detail
-
ResourceRepairedEvent
public ResourceRepairedEvent(SimuComModel model, String name)
The constructor.- Parameters:
model
- the owner modelname
- the name of the event
-
-
Method Detail
-
eventRoutine
public void eventRoutine(ScheduledResource who)
- Specified by:
eventRoutine
in classde.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator<ScheduledResource>
-
getFailedEvent
public ResourceFailedEvent getFailedEvent()
Retrieves the corresponding failure event.- Returns:
- the failure event
-
setFailedEvent
public void setFailedEvent(ResourceFailedEvent failedEvent)
Sets the corresponding failure event.- Parameters:
failedEvent
- the failure event
-
-