| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class provides the representation of an ACL communication within an Agent.
Implements XC00061D & XC00070F (except for support for ":encoding" field)
Field Summary | |
final static int | BYTELENGTH_ENCODING |
final static String | FIPA_OS_SERIALIZATION ACL Encoding using Java Serialisation |
final static String | FIPA00069 ACL Encoding name as defined in FIPA00069 |
final static String | FIPA00070 ACL Encoding name as defined in FIPA00070 |
final static String | FIPA00071 ACL Encoding name as defined in FIPA00071 |
final static List | RESERVED_SLOT_NAMES Reserved slot names in a List for convenience |
final static int | STRINGLITERAL_ENCODING Content encoding constants - see FIPA ACL spec. |
Constructor Summary | |
ACL() Creates an empty ACL communication |
Method Summary | |
void | addReceiverAID(AgentID aid) |
void | addReplyToAID(AgentID aid) |
Object | clone() |
String | getContentEncoding() |
Object | getContentObject() |
Object | getContentObject(boolean do_decode) Alternative getContentObject() - used by the ACL parser to get the content un-changed |
String | getConversationID() |
int | getEncoding() Indicates current/prefered content encoding type For use by ACL Parser |
String | getInReplyTo() |
String | getLanguage() |
String | getOntology() |
String | getPerformative() |
String | getProtocol() |
AgentID | getReceiverAID() Get just the first AID of the receivers field, if present |
List | getReceiverAIDs() |
UTCContainer | getReplyByUTC() |
List | getReplyToAIDs() |
String | getReplyWith() |
AgentID | getSenderAID() |
String | getUserSlot(String slot_name) Get the value associated with a user-defined slot |
Set | getUserSlots() Gets a list of the user-defined slot names for this ACL |
boolean | isBracketsStripped() Indicates if brackets have been stripped from SL content expression For use by ACL Parser |
boolean | isEncoded() Indicates if content has been encoded (as either BYTELENGTH or STRINGLITERAL) For use by ACL Parser |
static void | main(String[] args) |
void | setContentEncoding(String encoding) |
void | setContentObject(Object content) |
void | setContentObject(Object content, int encode) Sets the content, optionally encoding the content as the specified type (see FIPA specification), if it is Stringified |
void | setContentObjectACLParser(String s) Method to be invoked by the ACLParser to set the content - causes outer brakets to be stripped from SL |
void | setConversationID(String conv_id) |
void | setInReplyTo(String in_reply_to) |
void | setLanguage(String lang) |
void | setOntology(String ont) |
void | setPerformative(String perf) |
void | setProtocol(String protocol) |
void | setReceiverAID(AgentID aid) |
void | setReceiverAIDs(List aids) |
void | setReplyByUTC(UTCContainer utc) |
void | setReplyToAIDs(List aids) |
void | setReplyWith(String reply_with) |
void | setSenderAID(AgentID aid) |
boolean | setUserSlot(String slot_name, String value) Sets the value associated with a user-defined slot |
Field Detail |
public final static int BYTELENGTH_ENCODING
public final static String FIPA_OS_SERIALIZATION
public final static String FIPA00069
public final static String FIPA00070
public final static String FIPA00071
public final static List RESERVED_SLOT_NAMES
public final static int STRINGLITERAL_ENCODING
Constructor Detail |
public ACL()
Method Detail |
public void addReceiverAID(AgentID aid)
public void addReplyToAID(AgentID aid)
public Object clone()
public String getContentEncoding()
public Object getContentObject()
public Object getContentObject(boolean do_decode)
public String getConversationID()
public int getEncoding()
For use by ACL Parser
public String getInReplyTo()
public String getLanguage()
public String getOntology()
public String getPerformative()
public String getProtocol()
public AgentID getReceiverAID()
public List getReceiverAIDs()
public UTCContainer getReplyByUTC()
public List getReplyToAIDs()
public String getReplyWith()
public AgentID getSenderAID()
public String getUserSlot(String slot_name)
public Set getUserSlots()
public boolean isBracketsStripped()
For use by ACL Parser
public boolean isEncoded()
For use by ACL Parser
public static void main(String[] args)
throws java.lang.Throwable
public void setContentEncoding(String encoding)
public void setContentObject(Object content)
public void setContentObject(Object content, int encode)
public void setContentObjectACLParser(String s)
public void setConversationID(String conv_id)
public void setInReplyTo(String in_reply_to)
public void setLanguage(String lang)
public void setOntology(String ont)
public void setPerformative(String perf)
public void setProtocol(String protocol)
public void setReceiverAID(AgentID aid)
public void setReceiverAIDs(List aids)
public void setReplyByUTC(UTCContainer utc)
public void setReplyToAIDs(List aids)
public void setReplyWith(String reply_with)
public void setSenderAID(AgentID aid)
public boolean setUserSlot(String slot_name, String value)
Association Links |
to Class java.util.List
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class fipaos.ont.fipa.fipaman.AgentID
to Class java.util.List
to Class java.util.List
to Class java.lang.Object
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class fipaos.util.UTCContainer
to Class java.lang.String
to Class java.util.Map
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |