fipaos.ont.fipa.fipaman
Class AgentManagementAction


public class AgentManagementAction
implements Serializable

AgentManagementAction is an agent management action string converted into an object. It contains an AgentID, a DFAgentDescription or an AMSAgentDescription and/or a SearchConstraints object


Constructor Summary
AgentManagementAction(Content content)
          This constructor creates an AgentManagementAction object with a Content object generated by the SLParser.
AgentManagementAction(String agent_mgt_string)
          This constructor takes a string as the parameter.
AgentManagementAction()
          Empty Constructor.

Method Summary
 StringgetAction()
          This method returns the action type of the AgentManagementAction.
 AMSAgentDescriptiongetAMSAgentDescription()
          This method gets the ams-description object
 DFAgentDescriptiongetDFAgentDescription()
          This method returns the df-description object.
 SearchConstraintsgetSearchConstraints()
          This method returns the search constraints.
 static voidmain(String[] args)
          Test method
 voidsetAction(String action_type)
          This method sets the action of the AgentManagementAction object.
 voidsetAgentID(AgentID agent)
          This methods sets the AgentID.
 voidsetAMSAgentDescription(AMSAgentDescription ams_desc)
          This method sets the ams-description object.
 voidsetDFAgentDescription(DFAgentDescription df_desc)
          This method sets the df-description object
 voidsetSearchConstraints(SearchConstraints constraints)
          This method sets the SearchConstraints criteria.
 StringtoString()
          This method returns the String representation of the object

Constructor Detail

AgentManagementAction

public AgentManagementAction(Content content)
throws fipaos.parser.ParserException
This constructor creates an AgentManagementAction object with a Content object generated by the SLParser.
Parameters:
content - Content representing AgentManagementAction
Throws:
ParserException - if the Content is not valid

AgentManagementAction

public AgentManagementAction(String agent_mgt_string)
throws fipaos.parser.ParserException
This constructor takes a string as the parameter.
Parameters:
agent_mgt_string - string representing the AgentManagementAction
Throws:
ParserException - if the string is not valid

AgentManagementAction

public AgentManagementAction()
Empty Constructor. AgentManagementAction is populated using the set methods.
Method Detail

getAction

public String getAction()
This method returns the action type of the AgentManagementAction.
Returns: String representing the AgentManagementAction

getAMSAgentDescription

public AMSAgentDescription getAMSAgentDescription()
This method gets the ams-description object
Returns: AMS Agent Description object

getDFAgentDescription

public DFAgentDescription getDFAgentDescription()
This method returns the df-description object.
Returns: DFAgentDescription object

getSearchConstraints

public SearchConstraints getSearchConstraints()
This method returns the search constraints.
Returns: SearchConstraints for search actions

main

public static void main(String[] args)
Test method
Parameters:
args - Arguments

setAction

public void setAction(String action_type)
This method sets the action of the AgentManagementAction object.
Parameters:
action_type - action of the AgentManagementAction

setAgentID

public void setAgentID(AgentID agent)
This methods sets the AgentID.
Parameters:
agent - AgentID of the action

setAMSAgentDescription

public void setAMSAgentDescription(AMSAgentDescription ams_desc)
This method sets the ams-description object.
Parameters:
ams_desc - AMS Agent Description object

setDFAgentDescription

public void setDFAgentDescription(DFAgentDescription df_desc)
This method sets the df-description object
Parameters:
df_desc - DF Agent Description object

setSearchConstraints

public void setSearchConstraints(SearchConstraints constraints)
This method sets the SearchConstraints criteria.
Parameters:
constraints - SearchConstraints for search actions

toString

public String toString()
This method returns the String representation of the object
Returns: String string representation of the object

Association Links

to Class java.lang.String

to Class fipaos.ont.fipa.fipaman.DFAgentDescription

to Class fipaos.ont.fipa.fipaman.AMSAgentDescription

to Class fipaos.ont.fipa.fipaman.AgentID

to Class fipaos.ont.fipa.fipaman.SearchConstraints