Class 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 Detail

      • ResourceRepairedEvent

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

      • eventRoutine

        public void eventRoutine​(ScheduledResource who)
        Specified by:
        eventRoutine in class de.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