sidnet.utilityviews.statscollector
Class ExclusionStatEntry

java.lang.Object
  extended by sidnet.utilityviews.statscollector.StatEntry
      extended by sidnet.utilityviews.statscollector.ExclusionStatEntry
All Implemented Interfaces:
JistAPI.Timeless
Direct Known Subclasses:
StatEntry_AliveNodesCount, StatEntry_AverageEnergyLeftPercentage, StatEntry_AverageNeighborsCount, StatEntry_DeadNodesCount, StatEntry_DeadNodesPercentage, StatEntry_EnergyLeftPercentage, StatEntry_EnergySTDEV, StatEntry_MaximumEnergyLeftPercentage, StatEntry_MaximumNeighborsCount, StatEntry_MinimumEnergyLeftPercentage, StatEntry_MinimumNeighborsCount

public abstract class ExclusionStatEntry
extends StatEntry
implements JistAPI.Timeless


Nested Class Summary
static class ExclusionStatEntry.STATUS
           
static class ExclusionStatEntry.TYPE
           
 
Field Summary
static boolean DEBUG
           
protected  int inclusionContor
           
 
Fields inherited from class sidnet.utilityviews.statscollector.StatEntry
key, tag
 
Constructor Summary
ExclusionStatEntry(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.
ExclusionStatEntry(java.lang.String key, java.lang.String tag, Region region, ExclusionStatEntry.TYPE regionType)
           
 
Method Summary
 void excludeFromMonitoring(int id)
           
 boolean included(Node node)
           
 void includeInMonitoring(int id)
           
 void initialize(int numberOfNodes)
           
 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 sidnet.utilityviews.statscollector.StatEntry
getHeader, getKey, getValueAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
See Also:
Constant Field Values

inclusionContor

protected int inclusionContor
Constructor Detail

ExclusionStatEntry

public ExclusionStatEntry(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 -

ExclusionStatEntry

public ExclusionStatEntry(java.lang.String key,
                          java.lang.String tag,
                          Region region,
                          ExclusionStatEntry.TYPE regionType)
Method Detail

initialize

public void initialize(int numberOfNodes)

excludeFromMonitoring

public void excludeFromMonitoring(int id)

includeInMonitoring

public void includeInMonitoring(int id)

included

public boolean included(Node node)

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

Overrides:
update in class StatEntry