fipaos.ont.fipa.fipaman
Class DFAgentDescription

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

public class DFAgentDescription
extends java.lang.Object
implements DatabaseObject, java.io.Serializable

FIPA defined DF-description class for the FIPA agent management ontology. See FIPA 1997 Part 2 Section 9.

See Also:
Serialized Form

Constructor Summary
DFAgentDescription()
          This is an empty constructor.
DFAgentDescription(Content df_agent_content)
          THis constructor parses the content passed to it to populate its fields.
DFAgentDescription(java.lang.String df_agent_desc)
          This constructor parses the string passed to it to populate its fields.
 
Method Summary
 AgentID getAgentID()
          This method returns the AgentID.
 java.lang.String getAgentName()
          This method returns the agent id of the DFAgentDescription.
 java.util.Set getAgentServices()
          This method returns the set of agent services.
 java.util.Set getLanguages()
          This method returns the set of languages.
 int getNumberofDataElements()
          This method returns the number of elements of data in this DFAgentDescription
 java.lang.String getObjectID()
          This method is required by the DatabaseObject interface.
 java.util.Set getOntologies()
          This method returns the ontologies of the DFAgentDescription.
 java.util.Set getProtocols()
          This method returns the set of protocols.
static void main(java.lang.String[] args)
          This is used for testing purposes.
 void setAgentName(AgentID df_desc_item)
          This method sets the agent id of the description.
 void setAgentServices(ServiceDescription[] df_desc_item)
          This method sets the array of service descriptions.
 void setAgentServices(java.util.Set df_desc_item)
          This method sets the agent services.
 void setLanguages(java.util.Set df_desc_item)
          This method sets the languages.
 void setLanguages(java.lang.String[] df_desc_item)
          This method sets the languages
 void setOntologies(java.util.Set df_desc_item)
          This method sets the ontologies.
 void setOntologies(java.lang.String[] df_desc_item)
          This method sets the ontologies.
 void setProtocols(java.util.Set df_desc_item)
          This method sets the protocols .
 void setProtocols(java.lang.String[] df_desc_item)
          This method sets the protocols
 java.lang.String toString()
          This method returns an DF-Agent-description as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DFAgentDescription

public DFAgentDescription()
This is an empty constructor. Fields can be populated by using the set method.

DFAgentDescription

public DFAgentDescription(java.lang.String df_agent_desc)
                   throws ParserException
This constructor parses the string passed to it to populate its fields.
Parameters:
df_agent_desc - the string representing the DF-Agent Description
Throws:
ParserException - if the string is invalid

DFAgentDescription

public DFAgentDescription(Content df_agent_content)
                   throws ParserException
THis constructor parses the content passed to it to populate its fields.
Parameters:
df_agent_content - the string representing the DF-Agent-Description
Throws:
ParserException - if the string is not valid
Method Detail

getObjectID

public java.lang.String getObjectID()
This method is required by the DatabaseObject interface.
Specified by:
getObjectID in interface DatabaseObject
Returns:
String the key for object storage

getAgentID

public AgentID getAgentID()
This method returns the AgentID.
Returns:
AgentID of the DFAgentDescription

getAgentName

public java.lang.String getAgentName()
This method returns the agent id of the DFAgentDescription.
Returns:
AgentID of the DFAgentDescription

getAgentServices

public java.util.Set getAgentServices()
This method returns the set of agent services.
Returns:
Set of agent services

getNumberofDataElements

public int getNumberofDataElements()
This method returns the number of elements of data in this DFAgentDescription
Returns:
int no.of elements in the description

getOntologies

public java.util.Set getOntologies()
This method returns the ontologies of the DFAgentDescription.
Returns:
Set of ontologies

getProtocols

public java.util.Set getProtocols()
This method returns the set of protocols.
Returns:
set of protocols

getLanguages

public java.util.Set getLanguages()
This method returns the set of languages.
Returns:
set of languages

setAgentName

public void setAgentName(AgentID df_desc_item)
This method sets the agent id of the description.
Parameters:
df_desc_item - AgentID of the description

setAgentServices

public void setAgentServices(java.util.Set df_desc_item)
This method sets the agent services.
Parameters:
df_desc_item - set of agent services

setAgentServices

public void setAgentServices(ServiceDescription[] df_desc_item)
This method sets the array of service descriptions.
Parameters:
df_desc_item - array of service descriptions

setProtocols

public void setProtocols(java.util.Set df_desc_item)
This method sets the protocols .
Parameters:
df_desc_item - set of protocols

setProtocols

public void setProtocols(java.lang.String[] df_desc_item)
This method sets the protocols
Parameters:
df_desc_item - String array of protocols

setOntologies

public void setOntologies(java.util.Set df_desc_item)
This method sets the ontologies.
Parameters:
df_desc_item - set of ontologies

setOntologies

public void setOntologies(java.lang.String[] df_desc_item)
This method sets the ontologies.
Parameters:
df_desc_item - string array of ontologies

setLanguages

public void setLanguages(java.util.Set df_desc_item)
This method sets the languages.
Parameters:
df_desc_item - set of languages

setLanguages

public void setLanguages(java.lang.String[] df_desc_item)
This method sets the languages
Parameters:
df_desc_item - string array of languages

toString

public java.lang.String toString()
This method returns an DF-Agent-description as a string
Overrides:
toString in class java.lang.Object
Returns:
string representation of DFAgentDescription

main

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