|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--Statistics
Operating statistics for a warehouse crane.
Field Summary | |
protected int |
adds
Number of orders successfully added. |
protected int |
failedAdds
Number of orders unsuccessfully added. |
protected int |
failedRemoves
Number of orders unsuccessfully removed. |
protected int |
fragmented
Number of fragmented orders. |
protected int |
moves
Number of spaces moved. |
protected int |
removes
Number of orders successfully removed. |
protected long |
time
Number of milliseconds used by strategy. |
Constructor Summary | |
Statistics()
|
Method Summary | |
void |
add(Statistics s)
Adds the given statistics to this set of statistics. |
void |
addTime(long ms)
Adds the given number of milliseconds. |
int |
getAdds()
Returns the number of added orders. |
int |
getFailedAdds()
Returns the number of failed adds. |
int |
getFailedRemoves()
Returns the number of failed removes. |
int |
getFragmented()
Returns the number of fragmented orders. |
int |
getMoves()
Returns the number of crane moves. |
int |
getRemoves()
Returns the number of removed orders. |
long |
getTime()
Returns the number of milliseconds used by the strategy. |
void |
incrementAdds()
Adds one to the number of added orders. |
void |
incrementFailedAdds()
Adds one to the number of failed adds. |
void |
incrementFailedRemoves()
Adds one to the number of failed removes. |
void |
incrementFragmented()
Adds one to the number of fragmented orders. |
void |
incrementMoves()
Adds one to the number of crane moves. |
void |
incrementRemoves()
Adds one to the number of removed orders. |
void |
reset()
Resets all metrics to zero. |
protected void |
update()
Notifies observers that this object has changed. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int moves
protected int adds
protected int fragmented
protected int failedAdds
protected int removes
protected int failedRemoves
protected long time
Constructor Detail |
public Statistics()
Method Detail |
public void reset()
public void incrementMoves()
public int getMoves()
public void incrementAdds()
public int getAdds()
public void incrementFailedAdds()
public int getFailedAdds()
public void incrementFragmented()
public int getFragmented()
public void incrementRemoves()
public int getRemoves()
public void incrementFailedRemoves()
public int getFailedRemoves()
public void addTime(long ms)
public long getTime()
public void add(Statistics s)
protected void update()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |