fipaos.ont.fipa.fipaman
Class AgentManagementAction

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

public class AgentManagementAction
extends java.lang.Object
implements java.io.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

See Also:
Serialized Form

Constructor Summary
AgentManagementAction()
          Empty Constructor.
AgentManagementAction(Content content)
          This constructor creates an AgentManagementAction object with a Content object generated by the SLParser.
AgentManagementAction(java.lang.String agent_mgt_string)
          This constructor takes a string as the parameter.
 
Method Summary
 java.lang.String getAction()
          This method returns the action type of the AgentManagementAction.
 AMSAgentDescription getAMSAgentDescription()
          This method gets the ams-description object
 DFAgentDescription getDFAgentDescription()
          This method returns the df-description object.
 SearchConstraints getSearchConstraints()
          This method returns the search constraints.
static void main(java.lang.String[] args)
          Test method
 void setAction(java.lang.String action_type)
          This method sets the action of the AgentManagementAction object.
 void setAgentID(AgentID agent)
          This methods sets the AgentID.
 void setAMSAgentDescription(AMSAgentDescription ams_desc)
          This method sets the ams-description object.
 void setDFAgentDescription(DFAgentDescription df_desc)
          This method sets the df-description object
 void setSearchConstraints(SearchConstraints constraints)
          This method sets the SearchConstraints criteria.
 java.lang.String toString()
          This method returns the String representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentManagementAction

public AgentManagementAction(Content content)
                      throws 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(java.lang.String agent_mgt_string)
                      throws 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 java.lang.String getAction()
This method returns the action type of the AgentManagementAction.
Returns:
String representing the AgentManagementAction

setAction

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

toString

public java.lang.String toString()
This method returns the String representation of the object
Overrides:
toString in class java.lang.Object
Returns:
String string representation of the object

getDFAgentDescription

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

setDFAgentDescription

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

getAMSAgentDescription

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

setAMSAgentDescription

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

getSearchConstraints

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

setSearchConstraints

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

setAgentID

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

main

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