|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinput.ExternalEvent
input.MessageEvent
input.MessageRelayEvent
public class MessageRelayEvent
External event for all the stages of relaying a message between two hosts (start and possible abort or delivery).
| Field Summary | |
|---|---|
static int |
ABORTED
Message relay stage constant for aborted delivery |
static int |
SENDING
Message relay stage constant for start of sending |
static java.lang.String[] |
STAGE_STRINGS
Stage constant -> String representation mapping |
static int |
TRANSFERRED
Message relay stage constant for ready delivery |
| Fields inherited from class input.MessageEvent |
|---|
fromAddr, id, toAddr |
| Fields inherited from class input.ExternalEvent |
|---|
time |
| Constructor Summary | |
|---|---|
MessageRelayEvent(int from,
int to,
java.lang.String id,
double time,
int stage)
Creates a message relaying event |
|
| Method Summary | |
|---|---|
void |
processEvent(World world)
Relays the message |
java.lang.String |
toString()
Returns a String representation of the event |
| Methods inherited from class input.ExternalEvent |
|---|
compareTo, getTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SENDING
public static final int TRANSFERRED
public static final int ABORTED
public static final java.lang.String[] STAGE_STRINGS
| Constructor Detail |
|---|
public MessageRelayEvent(int from,
int to,
java.lang.String id,
double time,
int stage)
from - Where the message comes from (at this hop)to - Who the message goes to (at this hop)id - ID of the messagetime - Time when this event happensstage - The stage of the event (SENDING, TRANSFERRED, or ABORTED)| Method Detail |
|---|
public void processEvent(World world)
processEvent in class ExternalEventworld - World where the actors of the event arepublic java.lang.String toString()
ExternalEvent
toString in class MessageEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||