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

      • ResourceFailedEvent

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

      • 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