fipaos.ont.fipa.fipaman
Class AgentManagementResult


public class AgentManagementResult
implements Serializable

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


Constructor Summary
AgentManagementResult()
          This is the empty constructor.
AgentManagementResult(String result_string)
          This is a constructor which takes a string as the parameter
AgentManagementResult(Content result_content)
          This constructor takes a content object returned by the SL Parser as the parameter.

Method Summary
 ObjectconvertToObject(Content content)
           
 AgentManagementActiongetAgentManagementAction()
          This method returns the agent management action.
 SetgetResultSet()
          This method returns the result set.
 static voidmain(String[] args)
          This method is for testing
 voidsetAgentManagementAction(AgentManagementAction action)
          This method sets the AgentManagementAction
 voidsetResultSet(Set results)
          This method sets the result set.
 StringtoString()
          This method returns its string representation

Constructor Detail

AgentManagementResult

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

AgentManagementResult

public AgentManagementResult(String result_string)
throws fipaos.parser.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 fipaos.parser.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

convertToObject

public Object convertToObject(Content content)
throws fipaos.parser.ParserException

getAgentManagementAction

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

getResultSet

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

main

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

setAgentManagementAction

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

setResultSet

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

toString

public String toString()
This method returns its string representation
Returns: string representing the agent management result

Association Links

to Class fipaos.ont.fipa.fipaman.AgentManagementAction

to Class java.util.Set