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

    • ResourceFailedEvent

      public ResourceFailedEvent(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)
    • 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