|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.primordion.xholon.base.Xholon
org.primordion.xholon.base.Message
ROOM/UML2 message.
| Field Summary |
| Fields inherited from class org.primordion.xholon.base.Xholon |
DEFAULT_LEVEL, interaction, interactionsEnabled |
| Fields inherited from interface org.primordion.xholon.base.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
| Constructor Summary | |
Message(int signal,
java.lang.Object data,
IXholon sender,
IXholon receiver)
Constructor. |
|
Message(int signal,
java.lang.Object data,
IXholon sender,
IXholon receiver,
int index)
Constructor. |
|
Message(Message msg)
Constructor. |
|
| Method Summary | |
java.lang.Object |
getData()
Get the optional data included with the message. |
int |
getIndex()
Get the index. |
IXholon |
getReceiver()
Get the intended receiver of the message. |
IXholon |
getSender()
Get the sender of the message. |
int |
getSignal()
Get the signal that identifies the type of message. |
void |
setData(java.lang.Object data)
Set the data to be sent with the message. |
void |
setIndex(int index)
Set the index. |
void |
setReceiver(IXholon receiver)
Set the intended receiver of the message. |
void |
setSender(IXholon sender)
Set which Xholon instance sent the message. |
void |
setSignal(int signal)
Set the signal that identifies the message type. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Message(int signal,
java.lang.Object data,
IXholon sender,
IXholon receiver)
signal - An identifier for this message.data - Any data that may be transmitted with the message.sender - Which Xholon instance sent the message.receiver - Which Xholon instance should receive the message.
public Message(int signal,
java.lang.Object data,
IXholon sender,
IXholon receiver,
int index)
signal - An identifier for this message.data - Any data that may be transmitted with the message.sender - Which Xholon instance sent the message.receiver - Which Xholon instance should receive the message.index - The index of the replicated receiver port.public Message(Message msg)
msg - An existing message.| Method Detail |
public java.lang.Object getData()
IMessage
getData in interface IMessagepublic void setData(java.lang.Object data)
IMessage
setData in interface IMessagedata - The data to include with the message.public IXholon getReceiver()
IMessage
getReceiver in interface IMessagepublic void setReceiver(IXholon receiver)
IMessage
setReceiver in interface IMessagereceiver - The receiver.public IXholon getSender()
IMessage
getSender in interface IMessagepublic void setSender(IXholon sender)
IMessage
setSender in interface IMessagesender - The sender.public int getSignal()
IMessage
getSignal in interface IMessagepublic void setSignal(int signal)
IMessage
setSignal in interface IMessagesignal - The signal.public int getIndex()
IMessage
getIndex in interface IMessagepublic void setIndex(int index)
IMessage
setIndex in interface IMessageindex - The index.public java.lang.String toString()
toString in class Xholon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||