report
Class ConnectivityDtnsim2Report

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

public class ConnectivityDtnsim2Report
extends Report
implements ConnectionListener

Link connectivity report generator for DTNSim2 input. Connections that start during the warm up period are ignored.


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
ConnectivityDtnsim2Report()
          Constructor.
 
Method Summary
 void hostsConnected(DTNHost h1, DTNHost h2)
          Method is called when two hosts are connected.
 void hostsDisconnected(DTNHost h1, DTNHost h2)
          Method is called when connection between hosts is disconnected.
 
Methods inherited from class report.Report
addWarmupID, done, format, getAverage, getIntAverage, getIntMedian, getMedian, getScenarioName, getSettings, getSimTime, getVariance, init, 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

ConnectivityDtnsim2Report

public ConnectivityDtnsim2Report()
Constructor.

Method Detail

hostsConnected

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

Specified by:
hostsConnected in interface ConnectionListener
Parameters:
h1 - Host that initiated the connection
h2 - Host that was connected to

hostsDisconnected

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

Specified by:
hostsDisconnected in interface ConnectionListener
Parameters:
h1 - Host that initiated the disconnection
h2 - Host at the other end of the connection