|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.util.MsgUtils
public class MsgUtils
$Revision: 1.5 $
Constructor Summary | |
---|---|
MsgUtils()
|
Method Summary | |
---|---|
static AclMessage |
createAclMessage(AcrAgentName senderName,
AcrAgentName receiverName,
java.lang.String fipaPerformative,
java.lang.Object msgContent)
|
static AcrPayload |
createPayload(AcrAgentName senderName,
AcrAgentName receiverName,
java.lang.String fipaPerformative,
java.lang.Object msg)
|
static AclMessage |
getAclMessage(TransportMessage msg)
|
static boolean |
getBoolean(java.lang.String boolStr)
|
static Msg |
unwrapMsgContent(TransportMessage tMsg)
|
static java.lang.Object |
unwrapObjectContent(TransportMessage tMsg)
This method is more general than the unwrapMsgContent method. |
static java.lang.String |
unwrapStringContent(TransportMessage tMsg)
|
static TransportMessage |
wrapMsg(Locator sender,
Locator receiver,
java.lang.Object msg)
Utility function to wrap a KAoS Msg in a TransportMsg |
static TransportMessage |
wrapObject(Locator sender,
Locator receiver,
java.lang.String senderName,
java.lang.String receiverName,
java.lang.String fipaPerformative,
java.lang.Object msg)
Utility function to wrap an Object in a TransportMsg. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MsgUtils()
Method Detail |
---|
public static boolean getBoolean(java.lang.String boolStr)
public static TransportMessage wrapMsg(Locator sender, Locator receiver, java.lang.Object msg)
public static TransportMessage wrapObject(Locator sender, Locator receiver, java.lang.String senderName, java.lang.String receiverName, java.lang.String fipaPerformative, java.lang.Object msg)
public static AcrPayload createPayload(AcrAgentName senderName, AcrAgentName receiverName, java.lang.String fipaPerformative, java.lang.Object msg)
public static AclMessage createAclMessage(AcrAgentName senderName, AcrAgentName receiverName, java.lang.String fipaPerformative, java.lang.Object msgContent)
public static Msg unwrapMsgContent(TransportMessage tMsg)
public static java.lang.Object unwrapObjectContent(TransportMessage tMsg)
public static java.lang.String unwrapStringContent(TransportMessage tMsg)
public static AclMessage getAclMessage(TransportMessage msg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |