Package jasima.shopSim.core
Class MaintenanceSource
- java.lang.Object
-
- jasima.shopSim.core.DowntimeSource
-
- jasima.shopSim.core.MaintenanceSource
-
public class MaintenanceSource extends DowntimeSource
This class can be used to model scheduled maintenance. Maintenance intervals and duration are modeled using thetimeBetweenFailuresandtimeToRepairsettings. The difference toDowntimeSourceis thattimeBetweenFailuresuses the beginning of the last maintenance as the reference, whereasDowntimeSourceuses the end of the last downtime.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
MaintenanceSource, this is modeled settingtimeBetweenFailuresto 24 hours and using atimeToRepairof 1 hour.- Author:
- Torsten Hildebrandt
- See Also:
DowntimeSource
-
-
Constructor Summary
Constructors Constructor Description MaintenanceSource(IndividualMachine machine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublecalcDeactivateTime(Shop shop)voidinit()-
Methods inherited from class jasima.shopSim.core.DowntimeSource
calcActivateTime, ensurePositiveNumber, getMachine, getName, getTimeBetweenFailures, getTimeToRepair, isSourceActive, onActivate, onDeactivate, setName, setTimeBetweenFailures, setTimeToRepair, toString
-
-
-
-
Constructor Detail
-
MaintenanceSource
public MaintenanceSource(IndividualMachine machine)
-
-
Method Detail
-
init
public void init()
- Overrides:
initin classDowntimeSource
-
calcDeactivateTime
protected double calcDeactivateTime(Shop shop)
- Overrides:
calcDeactivateTimein classDowntimeSource
-
-