fipaos.ont.fipa.fipaman
Class ServiceDescription

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

public class ServiceDescription
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
ServiceDescription()
          This is an empty constructor where fields may be set specifically rather than using implicit parsing of a string.
ServiceDescription(Content desc_content)
          constructor parses the Content object passed to it to populate the object.
ServiceDescription(java.lang.String desc_string)
          This constructor parses the string passed to it to populate the object.
 
Method Summary
 boolean equals(ServiceDescription new_desc)
          This method compares if a Service description is the same.
 java.util.Set getOntologies()
          This method returns the ontologies.
 java.lang.String getOwnership()
          This method returns the ownership of the description.
 java.util.Set getProperties()
          This method return the properties.
 java.util.Set getProtocols()
          This method returns the protocols.
 java.lang.String getServiceName()
          This method returns the service name of the description
 java.lang.String getServiceType()
          This method returns the service type of the description.
static void main(java.lang.String[] args)
          This method is used for testing.
 void setOntologies(java.util.Set desc_item)
          This method sets the ontologies.
 void setOntologies(java.lang.String[] desc_item)
          This method sets the ontologies
 void setOwnership(java.lang.String desc_item)
          This method sets the ownership.
 void setProperties(PropertyTemplate[] desc_item)
          This method sets the properties
 void setProperties(java.util.Set desc_item)
          This method sets the properties
 void setProperties(java.lang.String[] desc_item)
          This method sets the properties
 void setProtocols(java.util.Set desc_item)
          This method sets the protocols.
 void setProtocols(java.lang.String[] desc_item)
          This method sets the protocols
 void setServiceName(java.lang.String desc_item)
          This method sets the service name of the description.
 void setServiceType(java.lang.String desc_item)
          This method sets the service type.
 java.lang.String toString()
          This method returns an Service-description as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceDescription

public ServiceDescription(java.lang.String desc_string)
                   throws 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 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

getServiceName

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

getServiceType

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

getOwnership

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

getOntologies

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

getProperties

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

getProtocols

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

setServiceName

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

setServiceType

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

setOwnership

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

setOntologies

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

setOntologies

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

setProperties

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

setProperties

public void setProperties(PropertyTemplate[] desc_item)
                   throws 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(java.lang.String[] desc_item)
                   throws 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(java.util.Set desc_item)
This method sets the protocols.
Parameters:
desc_item - set of protocols

setProtocols

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

toString

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

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

main

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