fipaos.ont.fipa.fipaman
Class AgentManagementResult

java.lang.Object
  |
  +--fipaos.ont.fipa.fipaman.AgentManagementResult
All Implemented Interfaces:
java.io.Serializable

public class AgentManagementResult
extends java.lang.Object
implements java.io.Serializable

This class represents a result content sent between agents. This corresponds to the second branch of the SL Atomic Formula.

See Also:
Serialized Form

Constructor Summary
AgentManagementResult()
          This is the empty constructor.
AgentManagementResult(Content result_content)
          This constructor takes a content object returned by the SL Parser as the parameter.
AgentManagementResult(java.lang.String result_string)
          This is a constructor which takes a string as the parameter
 
Method Summary
 java.lang.Object convertToObject(Content content)
           
 AgentManagementAction getAgentManagementAction()
          This method returns the agent management action.
 java.util.Set getResultSet()
          This method returns the result set.
static void main(java.lang.String[] args)
          This method is for testing
 void setAgentManagementAction(AgentManagementAction action)
          This method sets the AgentManagementAction
 void setResultSet(java.util.Set results)
          This method sets the result set.
 java.lang.String toString()
          This method returns its string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentManagementResult

public AgentManagementResult()
This is the empty constructor. Please use set and get to populate fields.

AgentManagementResult

public AgentManagementResult(java.lang.String result_string)
                      throws ParserException
This is a constructor which takes a string as the parameter
Parameters:
result_string - string representation of the result
Throws:
ParserException - if the string is invalid

AgentManagementResult

public AgentManagementResult(Content result_content)
                      throws ParserException
This constructor takes a content object returned by the SL Parser as the parameter.
Parameters:
result_content - content object returned by the SL Parser
Throws:
ParserException - if the string is invalid
Method Detail

setAgentManagementAction

public void setAgentManagementAction(AgentManagementAction action)
This method sets the AgentManagementAction
Parameters:
action - the AgentManagementAction

setResultSet

public void setResultSet(java.util.Set results)
This method sets the result set.
Parameters:
results - set of results

getAgentManagementAction

public AgentManagementAction getAgentManagementAction()
This method returns the agent management action.
Returns:
the agent management action

getResultSet

public java.util.Set getResultSet()
This method returns the result set.
Returns:
result set

toString

public java.lang.String toString()
This method returns its string representation
Overrides:
toString in class java.lang.Object
Returns:
string representing the agent management result

convertToObject

public java.lang.Object convertToObject(Content content)
                                 throws ParserException

main

public static void main(java.lang.String[] args)
This method is for testing
Parameters:
args - arguments