| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class is an lighter alternative implementation to the heavy
ConversationImpl. Functionality is also more limited, protocols are not
enforced, although there is intention for doing this in the future. All use that
depends on the protocol enforcing missing will be working as a side effect only.
Inner Class Summary | |
(package private) class | LightweightConversationImpl.MessageDetails Class to contain information about a message |
Field Summary | |
final static int | AGENT_ACTION_REQ Conversation requires Agent interaction |
final static int | CONVERSATION_END Conversation has ended |
final static int | NO_AGENT_ACTION_REQ Conversation requires no Agent interaction |
final static int | WAIT_BEFORE_END Wait for response before ending conversation |
Constructor Summary | |
LightweightConversationImpl() This consctructor creates a new LightweightConversationImpl object. | |
LightweightConversationImpl(String protocol, AgentID agent_id) |
Method Summary | |
(package private) void | addMessage(Message message) This method is for the ConversationManager to add messages into the Conversation. |
synchronized Object | clone() Clone method to make duplicates of this Conversation object |
(package private) synchronized LightweightConversationImpl | cloneAndResetUpdate() Creates a copy of this Conversation object, and sets the update state to false |
fipaos.ont.fipa.ACL | getACL(int index) Pass-back the latest message in this conversation. |
java.lang.String | getConversationID() Returns the conversation id for this conversation. |
fipaos.ont.fipa.fipaman.Envelope | getEnvelope(int index) Get the Envelope of a message received. |
fipaos.ont.fipa.ACL | getFilledInACL() Method to produce a filled in ACL - e.g. |
int | getLatestMessageIndex() Pass back the index of the latest message in the conversation. |
java.util.List | getNextMessages() Method to discover what types of messages can be sent next. |
java.util.List | getNextPerformatives() Method to discover what performatives are allowed next in the protocol. |
java.lang.String | getObjectID() Gets the conversation ID of the conversation. |
java.lang.String | getProtocol() Method to get the protocol this Conversation is following. |
java.lang.String | getSender(int index) Gets the sender of the message at the specified index. |
fipaos.ont.fipa.fipaman.AgentID | getSenderAID(int index) Gets the sender of the message at the specified index |
int | getState() Method to retrieve the state of the conversation (e.g. |
long | getTimeOut() Method to get the time at which the last message will time out |
long | getTimeStamp(int index) Method to retrieve the time stamp of a given message |
(package private) synchronized boolean | isUpdated() Checks if the conversation has been updated. |
(package private) synchronized void | removeReferences() Sets all references to null to aid garbage collection - ONLY USE WHEN OBJECT HAS BEEN FINISHED WITH! |
(package private) synchronized void | resetUpdate() Resets the update flag to false. |
(package private) void | setConversationID(String conv_id) Sets the conversation ID of the Conversation - should only be called directly after creation of a Conversation object from the ConversationManagerImpl |
Field Detail |
public final static int AGENT_ACTION_REQ
public final static int CONVERSATION_END
public final static int NO_AGENT_ACTION_REQ
public final static int WAIT_BEFORE_END
Constructor Detail |
public LightweightConversationImpl()
public LightweightConversationImpl(String protocol, AgentID agent_id)
Method Detail |
void addMessage(Message message)
throws fipaos.agent.conversation.InvalidConversationIDException
public synchronized Object clone()
synchronized LightweightConversationImpl cloneAndResetUpdate()
public fipaos.ont.fipa.ACL getACL(int index)
public java.lang.String getConversationID()
public fipaos.ont.fipa.fipaman.Envelope getEnvelope(int index)
public fipaos.ont.fipa.ACL getFilledInACL()
public int getLatestMessageIndex()
public java.util.List getNextMessages()
public java.util.List getNextPerformatives()
public java.lang.String getObjectID()
public java.lang.String getProtocol()
public java.lang.String getSender(int index)
public fipaos.ont.fipa.fipaman.AgentID getSenderAID(int index)
public int getState()
public long getTimeOut()
public long getTimeStamp(int index)
synchronized boolean isUpdated()
synchronized void removeReferences()
synchronized void resetUpdate()
void setConversationID(String conv_id)
Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.util.List
to Class fipaos.ont.fipa.fipaman.AgentID
to Class java.lang.String
to Class java.lang.Object
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |