report
Class InterContactTimesReport

java.lang.Object
  extended by report.Report
      extended by report.ContactTimesReport
          extended by report.InterContactTimesReport
All Implemented Interfaces:
ConnectionListener

public class InterContactTimesReport
extends ContactTimesReport

Reports the inter-contact time (i.e., the time between the end of previous contact and the beginning of a new contact between two hosts) distribution. The syntax of the report file is the same as in ContactTimesReport.


Nested Class Summary
 
Nested classes/interfaces inherited from class report.ContactTimesReport
ContactTimesReport.ConnectionInfo
 
Field Summary
 
Fields inherited from class report.ContactTimesReport
connections, granularity, GRANULARITY
 
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
InterContactTimesReport()
           
 
Method Summary
 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.
 
Methods inherited from class report.ContactTimesReport
addConnection, done, increaseTimeCount, init, removeConnection
 
Methods inherited from class report.Report
addWarmupID, format, getAverage, getIntAverage, getIntMedian, getMedian, getScenarioName, getSettings, getSimTime, getVariance, isWarmup, isWarmupID, newEvent, setPrefix, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterContactTimesReport

public InterContactTimesReport()
Method Detail

hostsConnected

public void hostsConnected(DTNHost host1,
                           DTNHost host2)
Description copied from interface: ConnectionListener
Method is called when two hosts are connected.

Specified by:
hostsConnected in interface ConnectionListener
Overrides:
hostsConnected in class ContactTimesReport
Parameters:
host1 - Host that initiated the connection
host2 - Host that was connected to

hostsDisconnected

public void hostsDisconnected(DTNHost host1,
                              DTNHost host2)
Description copied from interface: ConnectionListener
Method is called when connection between hosts is disconnected.

Specified by:
hostsDisconnected in interface ConnectionListener
Overrides:
hostsDisconnected in class ContactTimesReport
Parameters:
host1 - Host that initiated the disconnection
host2 - Host at the other end of the connection