|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectreport.Report
report.ContactsDuringAnICTReport
public class ContactsDuringAnICTReport
The number of contacts during an inter-contact time metric is similar to the inter-contact times metric, except that instead of measuring the time until a node meets again, we count the number of other nodes both of the nodes meet separately. In contrast to the inter-contact times, the number of contacts during an inter-contact is not symmetric, i.e. during an inter-contact both nodes wait the exact same time but will meet a different number of nodes.
Field Summary |
---|
Fields inherited from class report.Report |
---|
DEF_PRECISION, INTERVAL_SETTING, INTERVALLED_FORMAT, NAN, out, OUT_SUFFIX, OUTPUT_SETTING, PRECISION_SETTING, REPORT_NS, REPORTDIR_SETTING, WARMUP_S, warmupIDs, warmupTime |
Constructor Summary | |
---|---|
ContactsDuringAnICTReport()
|
Method Summary | |
---|---|
void |
done()
Called when the simulation is done, user requested premature termination or intervalled report generating decided that it's time for the next report. |
void |
hostsConnected(DTNHost host1,
DTNHost host2)
Method is called when two hosts are connected. |
void |
hostsDisconnected(DTNHost host1,
DTNHost host2)
Method is called when connection between hosts is disconnected. |
protected void |
init()
Initializes the report output. |
void |
updated(java.util.List<DTNHost> hosts)
Method is called on every update cycle. |
Methods inherited from class report.Report |
---|
addWarmupID, format, getAverage, getIntAverage, getIntMedian, getMedian, getScenarioName, getSettings, getSimTime, getVariance, isWarmup, isWarmupID, newEvent, removeWarmupID, setPrefix, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContactsDuringAnICTReport()
Method Detail |
---|
protected void init()
Report
init
in class Report
public void hostsConnected(DTNHost host1, DTNHost host2)
ConnectionListener
hostsConnected
in interface ConnectionListener
host1
- Host that initiated the connectionhost2
- Host that was connected topublic void hostsDisconnected(DTNHost host1, DTNHost host2)
ConnectionListener
hostsDisconnected
in interface ConnectionListener
host1
- Host that initiated the disconnectionhost2
- Host at the other end of the connectionpublic void updated(java.util.List<DTNHost> hosts)
UpdateListener
updated
in interface UpdateListener
hosts
- A list of all hosts in the worldpublic void done()
Report
done
in class Report
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |