report
Class UniqueEncountersReport
java.lang.Object
   report.Report
report.Report
       report.UniqueEncountersReport
report.UniqueEncountersReport
- All Implemented Interfaces: 
- ConnectionListener, UpdateListener
- public class UniqueEncountersReport 
- extends Report- implements ConnectionListener, UpdateListener
UniqueEncountersReport class creates a report of the distribution of how 
 many promilles of the other nodes a node has encountered.
 
| 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 | 
 
 
 
| Methods inherited from class report.Report | 
| addWarmupID, format, getAverage, getIntAverage, getIntMedian, getMedian, getScenarioName, getSettings, getSimTime, getVariance, init, isWarmup, isWarmupID, newEvent, removeWarmupID, setPrefix, write | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
UniqueEncountersReport
public UniqueEncountersReport()
hostsConnected
public void hostsConnected(DTNHost host1,
                           DTNHost host2)
- Description copied from interface: ConnectionListener
- Method is called when two hosts are connected.
 
- 
- Specified by:
- hostsConnectedin interface- ConnectionListener
 
- 
- 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:
- hostsDisconnectedin interface- ConnectionListener
 
- 
- Parameters:
- host1- Host that initiated the disconnection
- host2- Host at the other end of the connection
 
updated
public void updated(java.util.List<DTNHost> hosts)
- Description copied from interface: UpdateListener
- Method is called on every update cycle.
 
- 
- Specified by:
- updatedin interface- UpdateListener
 
- 
- Parameters:
- hosts- A list of all hosts in the world
 
done
public void done()
- Description copied from class: Report
- Called when the simulation is done, user requested
 premature termination or intervalled report generating decided
 that it's time for the next report.
 
- 
- Overrides:
- donein class- Report
 
- 
 
getNodeRelationships
public int[][] getNodeRelationships()
- 
 
- 
 
setNodeRelationships
public void setNodeRelationships(int[][] nodeRelationships)
- 
 
-