fipaos.ont.fipa.fipaman
Class DFAgentDescription


public class DFAgentDescription
implements DatabaseObject, Serializable

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


Constructor Summary
DFAgentDescription()
          This is an empty constructor.
DFAgentDescription(String df_agent_desc)
          This constructor parses the string passed to it to populate its fields.
DFAgentDescription(Content df_agent_content)
          THis constructor parses the content passed to it to populate its fields.

Method Summary
 AgentIDgetAgentID()
          This method returns the AgentID.
 StringgetAgentName()
          This method returns the agent id of the DFAgentDescription.
 SetgetAgentServices()
          This method returns the set of agent services.
 SetgetLanguages()
          This method returns the set of languages.
 intgetNumberofDataElements()
          This method returns the number of elements of data in this DFAgentDescription
 StringgetObjectID()
          This method is required by the DatabaseObject interface.
 SetgetOntologies()
          This method returns the ontologies of the DFAgentDescription.
 SetgetProtocols()
          This method returns the set of protocols.
 static voidmain(String[] args)
          This is used for testing purposes.
 voidsetAgentName(AgentID df_desc_item)
          This method sets the agent id of the description.
 voidsetAgentServices(Set df_desc_item)
          This method sets the agent services.
 voidsetAgentServices(ServiceDescription[] df_desc_item)
          This method sets the array of service descriptions.
 voidsetLanguages(Set df_desc_item)
          This method sets the languages.
 voidsetLanguages(String[] df_desc_item)
          This method sets the languages
 voidsetOntologies(Set df_desc_item)
          This method sets the ontologies.
 voidsetOntologies(String[] df_desc_item)
          This method sets the ontologies.
 voidsetProtocols(Set df_desc_item)
          This method sets the protocols .
 voidsetProtocols(String[] df_desc_item)
          This method sets the protocols
 StringtoString()
          This method returns an DF-Agent-description as a string

Constructor Detail

DFAgentDescription

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

DFAgentDescription

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

getAgentID

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

getAgentName

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

getAgentServices

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

getLanguages

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

getNumberofDataElements

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

getObjectID

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

getOntologies

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

getProtocols

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

main

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

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(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

setLanguages

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

setLanguages

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

setOntologies

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

setOntologies

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

setProtocols

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

setProtocols

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

toString

public String toString()
This method returns an DF-Agent-description as a string
Returns: string representation of DFAgentDescription

Association Links

to Class fipaos.ont.fipa.fipaman.AgentID

to Class java.util.Set

to Class java.util.Set

to Class java.util.Set

to Class java.util.Set