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>, de.uka.ipd.sdq.simulation.abstractsimengine.ISimRunnable<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 Details

    • ResourceRepairedEvent

      public ResourceRepairedEvent(SimuComModel model, String name)
      The constructor.
      Parameters:
      model - the owner model
      name - the name of the event
  • Method Details

    • eventRoutine

      public void eventRoutine(ScheduledResource who)
    • 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