sidnet.utilityviews.statscollector
Class StatEntry

java.lang.Object
  extended by sidnet.utilityviews.statscollector.StatEntry
Direct Known Subclasses:
ExclusionStatEntry, StatEntry_EventDetectedContor, StatEntry_EventMissedRatio, StatEntry_EventMonitor, StatEntry_EventOccurredContor, StatEntry_GeneralPurposeContor, StatEntry_MessagesContor, StatEntry_PacketDeliveryLatency, StatEntry_PacketReceivedContor, StatEntry_PacketReceivedPercentage, StatEntry_PacketSentContor, StatEntry_Time

public abstract class StatEntry
extends java.lang.Object


Field Summary
protected  java.lang.String key
           
protected  java.lang.String tag
           
 
Constructor Summary
StatEntry(java.lang.String key, java.lang.String tag)
          Must be called from extending classes Each data value that is being collected is refered to by means of a Header (or tag) (e.q.
 
Method Summary
 java.lang.String getHeader()
          Each data value that is being collected is refered to by means of a Header (or tag) (e.q.
 java.lang.String getKey()
           
 java.lang.String getValueAsString()
          Returns the current recorded value of the data that is being monitored, as String
 void update(Node[] nodes)
          User-defined processing (update of inner statistical values) based on the informations comprised in the Node The implementation must call this method first
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tag

protected java.lang.String tag

key

protected java.lang.String key
Constructor Detail

StatEntry

public StatEntry(java.lang.String key,
                 java.lang.String tag)
Must be called from extending classes Each data value that is being collected is refered to by means of a Header (or tag) (e.q. NumberOfNodesDead, AverageEnergy, etc)

Parameters:
header -
Method Detail

getHeader

public java.lang.String getHeader()
Each data value that is being collected is refered to by means of a Header (or tag) (e.q. NumberOfNodesDead, AverageEnergy, etc)

Returns:
header

getKey

public java.lang.String getKey()

getValueAsString

public java.lang.String getValueAsString()
Returns the current recorded value of the data that is being monitored, as String

Returns:
data value

update

public void update(Node[] nodes)
User-defined processing (update of inner statistical values) based on the informations comprised in the Node The implementation must call this method first