|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DisplayPanel | +--StatisticsView
View for simulation statistics.
Field Summary | |
protected JLabel |
added
View for the number of added orders. |
protected JLabel |
addedPer
View for the percentage of added orders. |
protected JLabel |
failedAdds
View for the number of failed adds. |
protected JLabel |
failedAddsPer
View for the percentage of failed adds. |
protected JLabel |
failedRemoves
View for the number of failed removes. |
protected JLabel |
failedRemovesPer
View for the percentage of failed removes. |
protected JLabel |
fragmented
View for the number of fragmented orders. |
protected JLabel |
fragmentedPer
View for the percentage of fragmented orders. |
protected DecimalFormat |
hundredth
String format for 2 decimal place precision. |
protected Statistics |
model
Statistics data model for this view. |
protected JLabel |
moves
View for the number of crane moves. |
protected JLabel |
movesPer
View for the number of crane moves per operation. |
protected DecimalFormat |
percent
String format for percentage. |
protected JLabel |
removed
View for the number of removed orders. |
protected JLabel |
removedPer
View for the percentage of removed orders. |
protected JLabel |
time
View for the number of milliseconds used. |
protected JLabel |
timePer
Vier for the number of milliseconds used per operation. |
Constructor Summary | |
StatisticsView(Statistics s)
|
Method Summary | |
protected void |
addComponents()
Adds the components to this GUI. |
protected void |
print()
Prints the statistics in the console. |
void |
update(Observable obj,
Object arg)
Called when the statistics data model changes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Statistics model
protected JLabel moves
protected JLabel movesPer
protected JLabel added
protected JLabel addedPer
protected JLabel failedAdds
protected JLabel failedAddsPer
protected JLabel fragmented
protected JLabel fragmentedPer
protected JLabel removed
protected JLabel removedPer
protected JLabel failedRemoves
protected JLabel failedRemovesPer
protected JLabel time
protected JLabel timePer
protected DecimalFormat hundredth
protected DecimalFormat percent
Constructor Detail |
public StatisticsView(Statistics s)
Method Detail |
public void update(Observable obj, Object arg)
update
in interface Observer
obj
- the statistics object that changedarg
- an arbitrary argument (ignored)protected void addComponents()
protected void print()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |