|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectreport.Report
report.MessageStatsProfileCastReport
public class MessageStatsProfileCastReport
Report for generating different kind of total statistics about message relaying performance. Messages that were created during the warm up period are ignored. Some of the statistic aknowleged are: numero of messages dropped, removed, relayed, created, delivered, latency, number of hops.
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 | |
---|---|
static java.lang.String |
EVENTS1_NS
|
static java.lang.String |
GROUP_NS
|
Fields inherited from class report.Report |
---|
DEF_PRECISION, INTERVAL_SETTING, INTERVALLED_FORMAT, NAN, OUT_SUFFIX, OUTPUT_SETTING, PRECISION_SETTING, REPORT_NS, REPORTDIR_SETTING, WARMUP_S |
Constructor Summary | |
---|---|
MessageStatsProfileCastReport()
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. |
void |
messageDeleted(core.Message m,
DTNHost where,
boolean dropped)
Method is called when a message is deleted |
void |
messageTransferAborted(core.Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer was aborted before it finished |
void |
messageTransferred(core.Message m,
DTNHost from,
DTNHost to,
boolean finalTarget)
Method is called when a message is successfully transferred from a node to another. |
void |
messageTransferStarted(core.Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer is started |
void |
newMessage(core.Message m)
Method is called when a new message is created |
Methods inherited from class report.Report |
---|
getAverage, getIntAverage, getIntMedian, getMedian, getVariance |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GROUP_NS
public static final java.lang.String EVENTS1_NS
Constructor Detail |
---|
public MessageStatsProfileCastReport()
Method Detail |
---|
public void messageDeleted(core.Message m, DTNHost where, boolean dropped)
core.MessageListener
messageDeleted
in interface core.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(core.Message m, DTNHost from, DTNHost to)
core.MessageListener
messageTransferAborted
in interface core.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(core.Message m, DTNHost from, DTNHost to, boolean finalTarget)
core.MessageListener
messageTransferred
in interface core.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(core.Message m)
core.MessageListener
newMessage
in interface core.MessageListener
m
- Message that was createdpublic void messageTransferStarted(core.Message m, DTNHost from, DTNHost to)
core.MessageListener
messageTransferStarted
in interface core.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.Report
done
in class report.Report
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |