|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisidia.simulation.process.messages.Message
visidia.simulation.process.messages.NeighborMessage
public class NeighborMessage
This class represents information (label, mark) about a neighbor.
Constructor Summary | |
---|---|
NeighborMessage(Neighbor n)
Instantiates a new neighbor message. |
|
NeighborMessage(Neighbor n,
MessageType t)
Instantiates a new neighbor message. |
|
NeighborMessage(java.lang.String l,
boolean b)
Instantiates a new neighbor message. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Gives a copy (a clone) of this object. |
java.lang.Object |
getData()
the returned object is a clone of this message. |
Neighbor |
getNeighbour()
Gets the neighbor. |
java.lang.String |
label()
Label. |
boolean |
mark()
Mark. |
java.lang.String |
toString()
Returns a string representation of the message. |
Methods inherited from class visidia.simulation.process.messages.Message |
---|
getMsgClock, getType, getVisualization, setMsgClock, setType, setVisualization |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NeighborMessage(java.lang.String l, boolean b)
l
- the labelb
- the markpublic NeighborMessage(Neighbor n)
n
- the neighborpublic NeighborMessage(Neighbor n, MessageType t)
n
- the neighbort
- the message typeMethod Detail |
---|
public boolean mark()
public java.lang.String label()
public Neighbor getNeighbour()
public java.lang.Object clone()
Message
clone
in class Message
public java.lang.Object getData()
getData
in class Message
public java.lang.String toString()
Message
toString
in class Message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |