|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.statistics.Statistics<StatisticObject>
messif.statistics.StatisticObject
public class StatisticObject
Field Summary | |
---|---|
protected java.lang.Object |
value
Object operation |
Fields inherited from class messif.statistics.Statistics |
---|
replaceWith |
Constructor Summary | |
---|---|
protected |
StatisticObject(java.lang.String name)
Creates a new instance of StatisticObject |
Method Summary | |
---|---|
protected StatisticObject |
cast()
Returns this statistics as the type provided typed argument. |
java.lang.Object |
get()
|
static StatisticObject |
getStatistics(java.lang.String name)
Create new statistic object with specified name or get the one already existing |
boolean |
changedSinceCheckpoint()
Reports if value of statistic has been changed since the last setCheckpoint() call. |
void |
reset()
Reset the current statistic (this one only). |
void |
set(java.lang.Object object)
|
protected void |
setFrom(StatisticObject sourceStat)
Set the value of this statistic to the actual value of the given sourceStat . |
void |
setCheckpoint()
Sets checkpoint. |
java.lang.String |
toString()
Text representation |
protected void |
updateFrom(StatisticObject sourceStat)
Statistics merging |
Methods inherited from class messif.statistics.Statistics |
---|
addBoundStat, bindTo, canPerformOperation, disableGlobally, enableGlobally, getAllStatistics, getAllStatistics, getBoundStats, getBoundTo, getName, getStatistics, isBound, isEnabledGlobally, isRegisteredGlobally, printStatistics, printStatistics, printStatistics, readResolve, removeBoundStat, removeStatistic, resetStatistics, resetStatistics, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object value
Constructor Detail |
---|
protected StatisticObject(java.lang.String name)
Method Detail |
---|
public void set(java.lang.Object object)
public java.lang.Object get()
protected void updateFrom(StatisticObject sourceStat)
updateFrom
in class Statistics<StatisticObject>
sourceStat
- the statistic from which to update this statprotected void setFrom(StatisticObject sourceStat)
Statistics
sourceStat
.
setFrom
in class Statistics<StatisticObject>
sourceStat
- the statistic from which to set this statpublic void reset()
reset
in class Statistics<StatisticObject>
public static StatisticObject getStatistics(java.lang.String name) throws java.lang.ClassCastException
java.lang.ClassCastException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean changedSinceCheckpoint()
public void setCheckpoint()
protected StatisticObject cast()
Statistics
cast
in class Statistics<StatisticObject>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |