Class Message

java.lang.Object
jason.asSemantics.Message
All Implemented Interfaces:
ToJson, Serializable

public class Message extends Object implements Serializable, ToJson
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • setSyncAskMsgId

      public void setSyncAskMsgId()
    • getIlForce

      public String getIlForce()
    • setIlForce

      public void setIlForce(String ilf)
    • isAsk

      public boolean isAsk()
    • isTell

      public boolean isTell()
    • isUnTell

      public boolean isUnTell()
    • isReplyToSyncAsk

      public boolean isReplyToSyncAsk()
    • isKnownPerformative

      public boolean isKnownPerformative()
    • setPropCont

      public void setPropCont(Object o)
    • getPropCont

      public Object getPropCont()
    • getReceiver

      public String getReceiver()
    • setSender

      public void setSender(String agName)
    • getSender

      public String getSender()
    • setReceiver

      public void setReceiver(String agName)
    • getMsgId

      public String getMsgId()
    • setMsgId

      public void setMsgId(String id)
    • getInReplyTo

      public String getInReplyTo()
    • setInReplyTo

      public void setInReplyTo(String inReplyTo)
    • clone

      public Message clone()
      Overrides:
      clone in class Object
    • getAsJson

      public javax.json.JsonValue getAsJson()
      Specified by:
      getAsJson in interface ToJson
    • parseMsg

      public static Message parseMsg(String msg) throws ParseException
      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

      public String toString()
      Overrides:
      toString in class Object