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

      • ResourceFailedEvent

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