Package jasima.shopSim.util
Class MachineStatCollector
- java.lang.Object
-
- jasima.shopSim.util.MachineStatCollector
-
- All Implemented Interfaces:
SimComponentLifecycleListener,NotifierListener<SimComponent,SimComponent.SimComponentEvent>,WorkStationListener,Cloneable
public class MachineStatCollector extends Object implements WorkStationListener, Cloneable
Produces basic statistics for each workstation it is installed on (like utilization, average queue length, average setup time per operation).- Author:
- Torsten Hildebrandt
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jasima.core.simulation.SimComponentLifecycleListener
SimComponentLifecycleListener.DoneListener, SimComponentLifecycleListener.InitListener, SimComponentLifecycleListener.OtherListener, SimComponentLifecycleListener.ResetStatsListener, SimComponentLifecycleListener.ResultsListener, SimComponentLifecycleListener.SimEndListener, SimComponentLifecycleListener.SimStartListener
-
-
Field Summary
Fields Modifier and Type Field Description TimeWeightedSummaryStataniqSummaryStataveBatchSizeTimeWeightedSummaryStataveMachinesBusySummaryStatcapacityUtilizedSummaryStatprocTimeSummaryStatsetupTimeSummaryStatstationDelay
-
Constructor Summary
Constructors Constructor Description MachineStatCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivated(WorkStation m, IndividualMachine justActivated)voidarrival(WorkStation m, Job j)MachineStatCollectorclone()voiddone(SimComponent c)voidinit(SimComponent c)voidoperationCompleted(WorkStation m, PrioRuleTarget justCompleted)voidoperationStarted(WorkStation m, PrioRuleTarget jobOrBatch, int oldSetupState, int newSetupState, double setTime)voidproduceResults(SimComponent c, Map<String,Object> res)StringtoString()-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jasima.core.simulation.SimComponentLifecycleListener
handleOther, resetStats, simEnd, simStart
-
Methods inherited from interface jasima.shopSim.core.WorkStationListener
deactivated, inform
-
-
-
-
Field Detail
-
aveMachinesBusy
public TimeWeightedSummaryStat aveMachinesBusy
-
aniq
public TimeWeightedSummaryStat aniq
-
stationDelay
public SummaryStat stationDelay
-
capacityUtilized
public SummaryStat capacityUtilized
-
aveBatchSize
public SummaryStat aveBatchSize
-
setupTime
public SummaryStat setupTime
-
procTime
public SummaryStat procTime
-
-
Method Detail
-
init
public void init(SimComponent c)
- Specified by:
initin interfaceSimComponentLifecycleListener
-
produceResults
public void produceResults(SimComponent c, Map<String,Object> res)
- Specified by:
produceResultsin interfaceSimComponentLifecycleListener
-
done
public void done(SimComponent c)
- Specified by:
donein interfaceSimComponentLifecycleListener
-
arrival
public void arrival(WorkStation m, Job j)
- Specified by:
arrivalin interfaceWorkStationListener
-
activated
public void activated(WorkStation m, IndividualMachine justActivated)
- Specified by:
activatedin interfaceWorkStationListener
-
operationStarted
public void operationStarted(WorkStation m, PrioRuleTarget jobOrBatch, int oldSetupState, int newSetupState, double setTime)
- Specified by:
operationStartedin interfaceWorkStationListener
-
operationCompleted
public void operationCompleted(WorkStation m, PrioRuleTarget justCompleted)
- Specified by:
operationCompletedin interfaceWorkStationListener
-
clone
public MachineStatCollector clone()
-
-