|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthicosim.control.utils.Statistics
public class Statistics
Class Statistics collects information about excecuted processor-commands. The class also provides methods to manage observers and to notify them about used commands.
| Constructor Summary | |
|---|---|
Statistics()
|
|
| Method Summary | |
|---|---|
void |
deleteObserver(IStatisticObserver oldObserver)
deleteObservers - deletes observer |
java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Long>> |
getStatistics()
getStatistics() - return the collected statistics in an ArrayList which consists of 2 hasmaps - (1) for the comands and (2) for the type of comands (e.g. |
java.lang.String[] |
getTypes()
getTypes() - return the default comand-types (e.g. |
void |
registerObserver(IStatisticObserver newObserver)
registerObservers - registers new observers who want to be informed on changes of comands |
void |
reset()
reset - Resets the whole statistics and also calls the method reset on all observers |
java.lang.String |
toString()
String representation, e.g. |
void |
updateStatistics(java.lang.String comand)
updateStatistics - This method is invoked by the class processor on every execution of a comand. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Statistics()
| Method Detail |
|---|
public void registerObserver(IStatisticObserver newObserver)
registerObserver in interface IStatisticIStatisticObserver - newObserverpublic void deleteObserver(IStatisticObserver oldObserver)
deleteObserver in interface IStatisticIStatisticObserver - oldObserverpublic void updateStatistics(java.lang.String comand)
updateStatistics in interface IStatisticString - comand - e.g. Add, Vmov etc.public void reset()
reset in interface IStatisticpublic java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Long>> getStatistics()
getStatistics in interface IStatisticpublic java.lang.String[] getTypes()
getTypes in interface IStatisticpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||