hicosim.control.utils
Interface IStatisticObserver

All Known Implementing Classes:
MainWindow

public interface IStatisticObserver

Interface IStatisticObserver - this interface has to be implemented by any observing-classes.


Method Summary
 void resetStats()
          resetStats - Resets the current stats.
 void updateStatsObserver(java.lang.String comand, java.lang.String type)
          updateStatsComands - This method is invoked on every comand execution.
 

Method Detail

updateStatsObserver

void updateStatsObserver(java.lang.String comand,
                         java.lang.String type)
updateStatsComands - This method is invoked on every comand execution. The observers will only get the current executed comand as a String, so the implementation and the view must be done by the observers.

Parameters:
comand - (String, e.g. "ADD")
type - (String, e.g. "SKALARALU")

resetStats

void resetStats()
resetStats - Resets the current stats. Method is invoked on resetting the processor. Previously the statistics are set to zero (types) or the whole map is deleted (comands). Within the resetStats-method every observer has to ensure that the representation is also updated.