|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--haifa.shopsim.lab.StatisticsCollector
Field Summary | |
protected ShopStatistics |
finishedStatistics
The statistics that have been completed by the last run. |
protected boolean[] |
lastEventWasWillingRest
An array of booleans that has true for each machine is the last event was a willing rest time. |
protected double[] |
lastTimes
An array of time objects saying when the machine last had a started or finished event. |
protected ShopData |
shopData
A refrence to the shopdata object. |
protected ShopState |
shopState
A reference to the shopstate object. |
protected ShopStatistics |
shopStatistics
The current shop statistics being collected. |
Constructor Summary | |
StatisticsCollector(ShopData shopData_,
ShopState shopState_)
Creates new StatisticsCollector |
Method Summary | |
ShopStatistics |
getStats()
Returns the statistics object collected by the last run. |
void |
shopChanged(ShopChangeEvent sce)
Called by the simulation whenever a shop change event takes place. |
java.lang.String |
toString()
Returns the string of the last shopStatistics object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected ShopStatistics shopStatistics
protected ShopStatistics finishedStatistics
protected ShopData shopData
protected ShopState shopState
protected double[] lastTimes
protected boolean[] lastEventWasWillingRest
Constructor Detail |
public StatisticsCollector(ShopData shopData_, ShopState shopState_)
Method Detail |
public void shopChanged(ShopChangeEvent sce)
shopChanged
in interface ShopChangeListener
public ShopStatistics getStats()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |