|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectreport.Report
report.MessageReport
public class MessageReport
Reports delivered messages report: message_id creation_time deliver_time (duplicate)
| Field Summary | |
|---|---|
static java.lang.String |
HEADER
|
| 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 | |
|---|---|
MessageReport()
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 |
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 firstDelivery)
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 |
| Field Detail |
|---|
public static final java.lang.String HEADER
| Constructor Detail |
|---|
public MessageReport()
| Method Detail |
|---|
public void init()
Report
init in class Reportpublic void newMessage(Message m)
MessageListener
newMessage in interface MessageListenerm - Message that was created
public void messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
MessageListener
messageTransferred in interface MessageListenerm - The message that was transferredfrom - Node where the message was transferred fromto - Node where the message was transferred tofirstDelivery - Was the target node final destination of the message
and received this message for the first time.public void done()
Report
done in class Report
public void messageDeleted(Message m,
DTNHost where,
boolean dropped)
MessageListener
messageDeleted in interface MessageListenerm - The message that was deletedwhere - The host where the message was deleteddropped - True if the message was dropped, false if removed
public void messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
MessageListener
messageTransferAborted in interface MessageListenerm - The message that was being transferredfrom - Node where the message was being transferred fromto - Node where the message was being transferred to
public void messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
MessageListener
messageTransferStarted in interface MessageListenerm - The message that is going to be transferredfrom - Node where the message is transferred fromto - Node where the message is transferred to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||