public class EnergyLevelReport extends Report implements UpdateListener
| Modifier and Type | Field and Description |
|---|---|
protected int |
granularity
value of the granularity setting
|
static java.lang.String |
GRANULARITY
Reporting granularity -setting id ("granularity").
|
protected double |
lastUpdate
time of last update
|
static java.lang.String |
REPORTED_NODES
Optional reported nodes (comma separated list of network addresses).
|
protected java.util.HashSet<java.lang.Integer> |
reportedNodes
Networks addresses (integers) of the nodes which are reported
|
DEF_PRECISION, INTERVAL_SETTING, INTERVALLED_FORMAT, NAN, out, OUT_SUFFIX, OUTPUT_SETTING, PRECISION_SETTING, REPORT_NS, REPORTDIR_SETTING, WARMUP_S, warmupIDs, warmupTime| Constructor and Description |
|---|
EnergyLevelReport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
updated(java.util.List<DTNHost> hosts)
Creates a new snapshot of the energy levels if "granularity"
seconds have passed since the last snapshot.
|
addWarmupID, checkDirExistence, done, format, getAverage, getIntAverage, getIntMedian, getMedian, getScenarioName, getSettings, getSimTime, getVariance, init, isWarmup, isWarmupID, newEvent, removeWarmupID, setPrefix, writepublic static final java.lang.String GRANULARITY
public static final java.lang.String REPORTED_NODES
protected final int granularity
protected double lastUpdate
protected java.util.HashSet<java.lang.Integer> reportedNodes
public EnergyLevelReport()
public void updated(java.util.List<DTNHost> hosts)
updated in interface UpdateListenerhosts - All the hosts in the world