|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectreport.Report
report.MessageStatsReport
public class MessageStatsReport
Report for generating different kind of total statistics about message relaying performance. Messages that were created during the warm up period are ignored.
Note: if some statistics could not be created (e.g. overhead ratio if no messages were delivered) "NaN" is reported for double values and zero for integer median(s).
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 | |
---|---|
MessageStatsReport()
Constructor. |
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. |
protected void |
init()
Initializes the report output. |
void |
messageDeleted(Message m,
DTNHost where,
boolean dropped)
Method is called when a message is deleted |
void |
messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer was aborted before it finished |
void |
messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean finalTarget)
Method is called when a message is successfully transferred from a node to another. |
void |
messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer is started |
void |
newMessage(Message m)
Method is called when a new message is created |
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 MessageStatsReport()
Method Detail |
---|
protected void init()
Report
init
in class Report
public void messageDeleted(Message m, DTNHost where, boolean dropped)
MessageListener
messageDeleted
in interface MessageListener
m
- The message that was deletedwhere
- The host where the message was deleteddropped
- True if the message was dropped, false if removedpublic void messageTransferAborted(Message m, DTNHost from, DTNHost to)
MessageListener
messageTransferAborted
in interface MessageListener
m
- The message that was being transferredfrom
- Node where the message was being transferred fromto
- Node where the message was being transferred topublic void messageTransferred(Message m, DTNHost from, DTNHost to, boolean finalTarget)
MessageListener
messageTransferred
in interface MessageListener
m
- The message that was transferredfrom
- Node where the message was transferred fromto
- Node where the message was transferred tofinalTarget
- Was the target node final destination of the message
and received this message for the first time.public void newMessage(Message m)
MessageListener
newMessage
in interface MessageListener
m
- Message that was createdpublic void messageTransferStarted(Message m, DTNHost from, DTNHost to)
MessageListener
messageTransferStarted
in interface MessageListener
m
- The message that is going to be transferredfrom
- Node where the message is transferred fromto
- Node where the message is transferred topublic void done()
Report
done
in class Report
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |