public class TotalContactTimeReport extends ContactTimesReport implements UpdateListener
ContactTimesReport.GRANULARITY setting. If update interval is
smaller than 1.0 seconds, time stamps may start to drift. Reported values
still correspond to reported times. Connections that started during the
warmup period are ignored.ContactTimesReport.ConnectionInfo| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HEADER
The header of every report file
|
connections, granularity, GRANULARITYDEF_PRECISION, INTERVAL_SETTING, INTERVALLED_FORMAT, NAN, out, OUT_SUFFIX, OUTPUT_SETTING, PRECISION_SETTING, REPORT_NS, REPORTDIR_SETTING, WARMUP_S, warmupIDs, warmupTime| Constructor and Description |
|---|
TotalContactTimeReport() |
| Modifier and Type | Method and Description |
|---|---|
void |
hostsDisconnected(DTNHost host1,
DTNHost host2)
Method is called when connection between hosts is disconnected.
|
void |
init()
Initializes the report output.
|
void |
updated(java.util.List<DTNHost> hosts)
Reports total contact time if more time than defined with setting
ContactTimesReport.GRANULARITY has passed. |
addConnection, done, hostsConnected, increaseTimeCount, removeConnectionaddWarmupID, checkDirExistence, format, getAverage, getIntAverage, getIntMedian, getMedian, getScenarioName, getSettings, getSimTime, getVariance, isWarmup, isWarmupID, newEvent, removeWarmupID, setPrefix, writepublic static final java.lang.String HEADER
public void init()
Reportinit in class ContactTimesReportpublic void hostsDisconnected(DTNHost host1, DTNHost host2)
ConnectionListenerhostsDisconnected in interface ConnectionListenerhostsDisconnected in class ContactTimesReporthost1 - Host that initiated the disconnectionhost2 - Host at the other end of the connectionpublic void updated(java.util.List<DTNHost> hosts)
ContactTimesReport.GRANULARITY has passed. Method is called
on every update cycle.updated in interface UpdateListenerhosts - A list of all hosts in the world