|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaa.core.ActorMessage
This class specifies a communication message between actors.
History:
Field Summary | |
private ActorName |
m_anReceiver
|
private ActorName |
m_anSender
|
private boolean |
m_bErrorMessage
|
private boolean |
m_bReturnMessage
|
private boolean |
m_bReturnRequest
|
private java.lang.Object[] |
m_objaArgs
|
private java.lang.String |
m_strComments
|
private java.lang.String |
m_strDestHostAddress
|
private java.lang.String |
m_strErrorMessage
|
private java.lang.String |
m_strMethod
|
private java.lang.String |
m_strReplyTo
|
private java.lang.String |
m_strReplyWith
|
Constructor Summary | |
ActorMessage(ActorName p_anSender,
ActorName p_anReceiver,
java.lang.String p_strMethod,
java.lang.Object[] p_objaArgs,
boolean p_bReturnRequest)
Creates an actor communication message. |
Method Summary | |
java.lang.Object[] |
getArguments()
Returns arguments of the method. |
java.lang.String |
getDestHostAddress()
Returns the Internet address of the destination host. |
java.lang.String |
getErrorMessage()
Returns an error message. |
java.lang.String |
getMethod()
Returns the method name. |
ActorName |
getReceiver()
Returns the name of the receiver actor. |
java.lang.String |
getReplyWith()
Returns the strRepyWith value. |
ActorName |
getSender()
Returns the name of the sender actor. |
boolean |
isErrorMessage()
Checkes if this is an error message. |
boolean |
isReturnMessage()
Checkes if this is a return message. |
boolean |
isReturnRequested()
Checkes if the ruturn message is required. |
ActorMessage |
makeErrorMessage(ActorName p_anSender,
java.lang.String p_strErrorMsg)
Create an error message. |
ActorMessage |
makeErrorMessage(java.lang.String p_strErrorMsg)
Create an error message. |
ActorMessage |
makeReturnMessage(java.lang.Object p_objReply)
Creates a return message. |
void |
setComments(java.lang.String p_strComments)
Sets comments of this message. |
void |
setDestHostAddress(java.lang.String p_strDestHostAddress)
Sets the Internet address of the destination host. |
void |
setErrorMessage(java.lang.String p_strMsg)
Sets an error message. |
void |
setReplyTo(java.lang.String p_strMsgID)
Sets the identifier of the original message. |
void |
setReturnMessage(java.lang.Object p_objReturn)
Initialize the return value of a call message. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ActorName m_anSender
private ActorName m_anReceiver
private java.lang.String m_strMethod
private java.lang.Object[] m_objaArgs
private boolean m_bReturnRequest
private java.lang.String m_strReplyWith
private java.lang.String m_strReplyTo
private java.lang.String m_strComments
private java.lang.String m_strErrorMessage
private java.lang.String m_strDestHostAddress
private boolean m_bReturnMessage
private boolean m_bErrorMessage
Constructor Detail |
public ActorMessage(ActorName p_anSender, ActorName p_anReceiver, java.lang.String p_strMethod, java.lang.Object[] p_objaArgs, boolean p_bReturnRequest)
p_anSender
- the name of the sender actor.p_anReceiver
- the name of the receiver actor.p_strMethod
- the name of the method to be called.p_objaArgs
- an array of argument objects.p_bReturnRequest
- the flag to request the return value.Method Detail |
public final ActorName getSender()
public final ActorName getReceiver()
public void setDestHostAddress(java.lang.String p_strDestHostAddress)
p_strDestHostAddress
- the Internet address of
the destination host of this message.public final java.lang.String getDestHostAddress()
public final java.lang.String getMethod()
public final java.lang.Object[] getArguments()
public boolean isReturnRequested()
public void setReturnMessage(java.lang.Object p_objReturn)
p_objReturn
- the return value of a call message.public boolean isReturnMessage()
public void setErrorMessage(java.lang.String p_strMsg)
p_strMsg
- an error message.public final java.lang.String getErrorMessage()
public boolean isErrorMessage()
public final java.lang.String getReplyWith()
public void setReplyTo(java.lang.String p_strMsgID)
p_strMsgID
- the identifier of the original message.public void setComments(java.lang.String p_strComments)
p_strComments
- comments of this message.public ActorMessage makeReturnMessage(java.lang.Object p_objReply)
p_objReply
- the refrence to an object, a return value.
public ActorMessage makeErrorMessage(java.lang.String p_strErrorMsg)
p_strErrorMsg
- an error message.
public ActorMessage makeErrorMessage(ActorName p_anSender, java.lang.String p_strErrorMsg)
p_anSender
- the name of the sender actor of this message.p_strErrorMsg
- an error message.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |