report
Class PingAppReporter

java.lang.Object
  extended by report.Report
      extended by report.PingAppReporter
All Implemented Interfaces:
ApplicationListener

public class PingAppReporter
extends Report
implements ApplicationListener

Reporter for the PingApplication. Counts the number of pings and pongs sent and received. Calculates success probabilities.


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
PingAppReporter()
           
 
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 gotEvent(java.lang.String event, java.lang.Object params, Application app, DTNHost host)
          Application has generated an event.
 
Methods inherited from class report.Report
addWarmupID, 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

PingAppReporter

public PingAppReporter()
Method Detail

gotEvent

public void gotEvent(java.lang.String event,
                     java.lang.Object params,
                     Application app,
                     DTNHost host)
Description copied from interface: ApplicationListener
Application has generated an event.

Specified by:
gotEvent in interface ApplicationListener
Parameters:
event - Event name.
params - Additional parameters for the event
app - Application instance that generated the event.
host - The host this application instance is running on.

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:
done in class Report