Class DowntimeSource

  • Direct Known Subclasses:
    MaintenanceSource, StaticListDowntimeSource

    public class DowntimeSource
    extends Object
    Abstraction of a downtime source. Each IndividualMachine can have multiple downtime sources. Downtimes are specified using timeBetweenFailures and timeToRepair. timeBetweenFailures specifies the time until the next takeDown-event after the last activation.

    A simple example: consider a machine that is going to be down every 24 hours for a duration of 1 hour, i.e., it is available for processing for 23 hours. Using DowntimeSource, this is modeled setting timeBetweenFailures to 23 hours and using a timeToRepair of 1 hour.

    Author:
    Torsten Hildebrandt
    See Also:
    MaintenanceSource
    • Method Detail

      • init

        public void init()
      • onActivate

        protected void onActivate()
      • isSourceActive

        protected boolean isSourceActive()
      • onDeactivate

        protected void onDeactivate()
      • calcDeactivateTime

        protected double calcDeactivateTime​(Shop shop)
      • calcActivateTime

        protected double calcActivateTime​(Shop shop)
      • ensurePositiveNumber

        protected double ensurePositiveNumber​(DblSequence dblStream)
      • getTimeBetweenFailures

        public DblSequence getTimeBetweenFailures()
      • setTimeBetweenFailures

        public void setTimeBetweenFailures​(DblSequence timeBetweenFailures)
      • getTimeToRepair

        public DblSequence getTimeToRepair()
      • setTimeToRepair

        public void setTimeToRepair​(DblSequence timeToRepair)
      • getName

        public String getName()
      • setName

        public void setName​(String name)