Package jason.asSemantics
Class Message
java.lang.Object
jason.asSemantics.Message
- All Implemented Interfaces:
ToJson,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()javax.json.JsonValuegetMsgId()booleanisAsk()booleanbooleanbooleanisTell()booleanisUnTell()static MessageCreates a new message object based on a string that follows the format of the toString of Message class.voidsetIlForce(String ilf) voidsetInReplyTo(String inReplyTo) voidvoidvoidsetReceiver(String agName) voidvoidtoString()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jason.util.ToJson
getAsJsonStr
-
Field Details
-
knownPerformatives
-
msgIdPrefix
- See Also:
-
msgIdSyncAskPrefix
- See Also:
-
kqmlReceivedFunctor
- See Also:
-
kqmlDefaultPlans
- See Also:
-
-
Constructor Details
-
Message
public Message() -
Message
-
Message
-
Message
-
-
Method Details
-
setSyncAskMsgId
public void setSyncAskMsgId() -
getIlForce
-
setIlForce
-
isAsk
public boolean isAsk() -
isTell
public boolean isTell() -
isUnTell
public boolean isUnTell() -
isReplyToSyncAsk
public boolean isReplyToSyncAsk() -
isKnownPerformative
public boolean isKnownPerformative() -
setPropCont
-
getPropCont
-
getReceiver
-
setSender
-
getSender
-
setReceiver
-
getMsgId
-
setMsgId
-
getInReplyTo
-
setInReplyTo
-
clone
-
getAsJson
public javax.json.JsonValue getAsJson() -
parseMsg
Creates a new message object based on a string that follows the format of the toString of Message class.- Parameters:
msg- the string message- Returns:
- the parsed Message
- Throws:
ParseException
-
toString
-