Package jasima.shopSim.core
Class IndividualMachine
- java.lang.Object
-
- jasima.shopSim.core.IndividualMachine
-
public class IndividualMachine extends Object
This class represents a single machine, which is part of aWorkStation.- Author:
- Torsten Hildebrandt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndividualMachine.MachineState
-
Field Summary
Fields Modifier and Type Field Description PrioRuleTargetcurJobDowntimeSourcedownReasonList<? extends DowntimeSource>downsourcesintidxintinitialSetupStringnamedoubleprocFinisheddoubleprocStarteddoublerelDateintsetupStateIndividualMachine.MachineStatestateWorkStationworkStation
-
Constructor Summary
Constructors Constructor Description IndividualMachine(WorkStation workStation, int idx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Activation from DOWN state.StringgetName()protected voidinit()voidtakeDown(DowntimeSource downReason)Machine going down for a certain amount of time.StringtoString()
-
-
-
Field Detail
-
workStation
public final WorkStation workStation
-
idx
public final int idx
-
relDate
public double relDate
-
initialSetup
public int initialSetup
-
name
public String name
-
downsources
public List<? extends DowntimeSource> downsources
-
state
public IndividualMachine.MachineState state
-
downReason
public DowntimeSource downReason
-
procStarted
public double procStarted
-
procFinished
public double procFinished
-
setupState
public int setupState
-
curJob
public PrioRuleTarget curJob
-
-
Constructor Detail
-
IndividualMachine
public IndividualMachine(WorkStation workStation, int idx)
-
-
Method Detail
-
activate
public void activate()
Activation from DOWN state.
-
takeDown
public void takeDown(DowntimeSource downReason)
Machine going down for a certain amount of time. If this machine is already down or currently processing, this operation is finished before the new downtime can become active.- Parameters:
downReason- TheDowntimeSourcecausing the shutdown.
-
init
protected void init()
-
getName
public String getName()
-
-