public class FloatingContentSummaryReport extends Report implements MessageListener
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Comparator<java.lang.Integer> |
compare |
static java.lang.String |
HEADER |
static int |
N_ELEM |
DEF_PRECISION, INTERVAL_SETTING, INTERVALLED_FORMAT, NAN, out, OUT_SUFFIX, OUTPUT_SETTING, PRECISION_SETTING, REPORT_NS, REPORTDIR_SETTING, WARMUP_S, warmupIDs, warmupTime| Constructor and Description |
|---|
FloatingContentSummaryReport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.String |
index(int size,
int ttl,
int r,
int a) |
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
|
addWarmupID, checkDirExistence, format, getAverage, getIntAverage, getIntMedian, getMedian, getScenarioName, getSettings, getSimTime, getVariance, isWarmup, isWarmupID, newEvent, removeWarmupID, setPrefix, writepublic static final java.lang.String HEADER
public static final int N_ELEM
protected java.util.Comparator<java.lang.Integer> compare
public void init()
Reportprotected java.lang.String index(int size,
int ttl,
int r,
int a)
public void newMessage(Message m)
MessageListenernewMessage in interface MessageListenerm - Message that was createdpublic void messageTransferred(Message m, DTNHost from, DTNHost to, boolean firstDelivery)
MessageListenermessageTransferred 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 messageDeleted(Message m, DTNHost where, boolean dropped)
MessageListenermessageDeleted in interface MessageListenerm - 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)
MessageListenermessageTransferAborted in interface MessageListenerm - The message that was being transferredfrom - Node where the message was being transferred fromto - Node where the message was being transferred topublic void messageTransferStarted(Message m, DTNHost from, DTNHost to)
MessageListenermessageTransferStarted 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