|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--springs.access.StatisticsReferenceUpdate
Class keeping statistics about reference updating.
Field Summary | |
(package private) springs.util.IncrementalAverageComputator |
_interestedPerCommandComp
|
(package private) springs.util.IncrementalAverageComputator |
_percentageCommunicationsSavingsComp
|
(package private) springs.util.IncrementalAverageComputator |
_secondsUpdatingReferenceComp
|
Constructor Summary | |
StatisticsReferenceUpdate()
|
Method Summary | |
void |
addInterestedPerCommand(double interested)
Registers the given number of contexts interested in an agent reference update. |
void |
addPercentageCommunicationsSavings(double percentage)
Registers the given number of seconds to update references. |
void |
addSecondsUpdatingReferences(double seconds)
Registers the given number of seconds to update references. |
double |
getAvgInterestedPerCommand()
Gets the average percentage of contexts interested in an agent reference update. |
double |
getAvgPercentageSavings()
Gets the average percentage of savings in reference update, per update. |
double |
getAvgSecondsUpdatingReferences()
Gets the average number of seconds spent in reference updating, per update. |
double |
getPercentageSavings()
Gets the total percentage of savings in reference updates. |
double |
getSecondsUpdatingReferences()
Gets the total number of seconds spent in reference updating. |
void |
printStatistics()
Prints the statistics. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
springs.util.IncrementalAverageComputator _percentageCommunicationsSavingsComp
springs.util.IncrementalAverageComputator _secondsUpdatingReferenceComp
springs.util.IncrementalAverageComputator _interestedPerCommandComp
Constructor Detail |
public StatisticsReferenceUpdate()
Method Detail |
public void addSecondsUpdatingReferences(double seconds)
seconds
- the seconds.public void addPercentageCommunicationsSavings(double percentage)
public void addInterestedPerCommand(double interested)
interested
- the number of interested contexts.public double getSecondsUpdatingReferences()
public double getAvgSecondsUpdatingReferences()
public double getPercentageSavings()
public double getAvgPercentageSavings()
public double getAvgInterestedPerCommand()
public void printStatistics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |