|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectreport.Report
report.EventLogReport
public class EventLogReport
Report that creates same output as the GUI's event log panel but formatted
like StandardEventsReader input. Message relying event has
extra one-letter identifier to tell whether that message was delivered to
final destination, delivered there again, or just normally relayed
(see the public constants).
| Field Summary | |
|---|---|
static java.lang.String |
MESSAGE_TRANS_DELIVERED
Extra info for message relayed event ("delivered"): "D" |
static java.lang.String |
MESSAGE_TRANS_DELIVERED_AGAIN
Extra info for message relayed event ("delivered again"): "A" |
static java.lang.String |
MESSAGE_TRANS_RELAYED
Extra info for message relayed event ("relayed"): "R" |
| 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 | |
|---|---|
EventLogReport()
|
|
| Method Summary | |
|---|---|
void |
hostsConnected(DTNHost host1,
DTNHost host2)
Method is called when two hosts are connected. |
void |
hostsDisconnected(DTNHost host1,
DTNHost host2)
Method is called when connection between hosts is disconnected. |
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, done, format, getAverage, getIntAverage, getIntMedian, getMedian, getScenarioName, getSettings, getSimTime, getVariance, init, 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 MESSAGE_TRANS_RELAYED
public static final java.lang.String MESSAGE_TRANS_DELIVERED
public static final java.lang.String MESSAGE_TRANS_DELIVERED_AGAIN
| Constructor Detail |
|---|
public EventLogReport()
| Method Detail |
|---|
public void hostsConnected(DTNHost host1,
DTNHost host2)
ConnectionListener
hostsConnected in interface ConnectionListenerhost1 - Host that initiated the connectionhost2 - Host that was connected to
public void hostsDisconnected(DTNHost host1,
DTNHost host2)
ConnectionListener
hostsDisconnected in interface ConnectionListenerhost1 - Host that initiated the disconnectionhost2 - Host at the other end of the connection
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 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 newMessage(Message m)
MessageListener
newMessage in interface MessageListenerm - Message that was created
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 | ||||||||