sidnet.utilityviews.statscollector
Class ExclusionStatEntry
java.lang.Object
sidnet.utilityviews.statscollector.StatEntry
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
Fields inherited from class sidnet.utilityviews.statscollector.StatEntry |
key, tag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
inclusionContor
protected int inclusionContor
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)
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