fipaos.ont.fipa.fipaman
Class ServiceDescription


public class ServiceDescription
implements Serializable

FIPA defined FIPA-Service-Desc class for the FIPA agent management ontology. See FIPA 2000 XC00008D 6.1.3.


Constructor Summary
ServiceDescription(String desc_string)
          This constructor parses the string passed to it to populate the object.
ServiceDescription(Content desc_content)
          constructor parses the Content object passed to it to populate the object.
ServiceDescription()
          This is an empty constructor where fields may be set specifically rather than using implicit parsing of a string.

Method Summary
 booleanequals(ServiceDescription new_desc)
          This method compares if a Service description is the same.
 SetgetOntologies()
          This method returns the ontologies.
 StringgetOwnership()
          This method returns the ownership of the description.
 SetgetProperties()
          This method return the properties.
 SetgetProtocols()
          This method returns the protocols.
 StringgetServiceName()
          This method returns the service name of the description
 StringgetServiceType()
          This method returns the service type of the description.
 static voidmain(String [] args)
          This method is used for testing.
 voidsetOntologies(Set desc_item)
          This method sets the ontologies.
 voidsetOntologies(String[] desc_item)
          This method sets the ontologies
 voidsetOwnership(String desc_item)
          This method sets the ownership.
 voidsetProperties(Set desc_item)
          This method sets the properties
 voidsetProperties(PropertyTemplate[] desc_item)
          This method sets the properties
 voidsetProperties(String[] desc_item)
          This method sets the properties
 voidsetProtocols(Set desc_item)
          This method sets the protocols.
 voidsetProtocols(String[] desc_item)
          This method sets the protocols
 voidsetServiceName(String desc_item)
          This method sets the service name of the description.
 voidsetServiceType(String desc_item)
          This method sets the service type.
 StringtoString()
          This method returns an Service-description as a string

Constructor Detail

ServiceDescription

public ServiceDescription(String desc_string)
throws fipaos.parser.ParserException
This constructor parses the string passed to it to populate the object.
Parameters:
desc_string - the DF-servicedescription
Throws:
ParserException - if the string is invalid

ServiceDescription

public ServiceDescription(Content desc_content)
throws fipaos.parser.ParserException
constructor parses the Content object passed to it to populate the object.
Parameters:
desc_content - the DF-servicedescription
Throws:
ParserException - if the string is invalid

ServiceDescription

public ServiceDescription()
This is an empty constructor where fields may be set specifically rather than using implicit parsing of a string.
Method Detail

equals

public boolean equals(ServiceDescription new_desc)
This method compares if a Service description is the same.
Parameters:
new_desc - service description to be compared
Returns: true if equal, false otherwise

getOntologies

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

getOwnership

public String getOwnership()
This method returns the ownership of the description.
Returns: ownership of the description

getProperties

public Set getProperties()
This method return the properties.
Returns: set of properties

getProtocols

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

getServiceName

public String getServiceName()
This method returns the service name of the description
Returns: service name of the description

getServiceType

public String getServiceType()
This method returns the service type of the description.
Returns: service type of the description

main

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

setOntologies

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

setOntologies

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

setOwnership

public void setOwnership(String desc_item)
This method sets the ownership.
Parameters:
desc_item - ownership of the service

setProperties

public void setProperties(Set desc_item)
This method sets the properties
Parameters:
desc_item - set of properties

setProperties

public void setProperties(PropertyTemplate[] desc_item)
throws fipaos.parser.ParserException
This method sets the properties
Parameters:
desc_item - array of PropertyTemplate
Throws:
ParserException - if the PropertyTemplate array is not valid

setProperties

public void setProperties(String[] desc_item)
throws fipaos.parser.ParserException
This method sets the properties
Parameters:
desc_item - string array of property templates
Throws:
ParserException - if the string array is not valid

setProtocols

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

setProtocols

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

setServiceName

public void setServiceName(String desc_item)
This method sets the service name of the description.
Parameters:
desc_item - service name

setServiceType

public void setServiceType(String desc_item)
This method sets the service type.
Parameters:
desc_item - service type

toString

public String toString()
This method returns an Service-description as a string
Returns: string representation of the service description

Association Links

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.util.Set

to Class java.util.Set

to Class java.util.Set