Class ResourceFailedEvent
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator<ScheduledResource>
-
- de.uka.ipd.sdq.simucomframework.resources.ResourceFailedEvent
-
- All Implemented Interfaces:
de.uka.ipd.sdq.simulation.abstractsimengine.ISimEvent<ScheduledResource>
public class ResourceFailedEvent extends de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator<ScheduledResource>
Represents a failure of an AbstractScheduledResource. After the occurrence of the failure event, the resource remains unavailable until the next repair event occurs.
-
-
Constructor Summary
Constructors Constructor Description ResourceFailedEvent(SimuComModel model, String name)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
eventRoutine(ScheduledResource who)
ResourceRepairedEvent
getRepairedEvent()
Retrieves the corresponding repair event.void
setRepairedEvent(ResourceRepairedEvent repairedEvent)
Sets the corresponding repair event.-
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator
removeEvent, schedule, scheduledAtTime
-
-
-
-
Constructor Detail
-
ResourceFailedEvent
public ResourceFailedEvent(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>
-
getRepairedEvent
public ResourceRepairedEvent getRepairedEvent()
Retrieves the corresponding repair event.- Returns:
- the repair event
-
setRepairedEvent
public void setRepairedEvent(ResourceRepairedEvent repairedEvent)
Sets the corresponding repair event.- Parameters:
repairedEvent
- the repair event
-
-