|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.ont.fipa.fipaman.ServiceDescription
FIPA defined FIPA-Service-Desc class for the FIPA agent management ontology.
See FIPA 2000 XC00008D 6.1.3.
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 |
public ServiceDescription(java.lang.String desc_string) throws ParserException
desc_string
- the DF-servicedescriptionParserException
- if the string is invalidpublic ServiceDescription(Content desc_content) throws ParserException
desc_content
- the DF-servicedescriptionParserException
- if the string is invalidpublic ServiceDescription()
Method Detail |
public java.lang.String getServiceName()
public java.lang.String getServiceType()
public java.lang.String getOwnership()
public java.util.Set getOntologies()
public java.util.Set getProperties()
public java.util.Set getProtocols()
public void setServiceName(java.lang.String desc_item)
desc_item
- service namepublic void setServiceType(java.lang.String desc_item)
desc_item
- service typepublic void setOwnership(java.lang.String desc_item)
desc_item
- ownership of the servicepublic void setOntologies(java.util.Set desc_item)
desc_item
- set of ontologiespublic void setOntologies(java.lang.String[] desc_item)
desc_item
- string array of ontologiespublic void setProperties(java.util.Set desc_item)
desc_item
- set of propertiespublic void setProperties(PropertyTemplate[] desc_item) throws ParserException
desc_item
- array of PropertyTemplateParserException
- if the PropertyTemplate array is not validpublic void setProperties(java.lang.String[] desc_item) throws ParserException
desc_item
- string array of property templatesParserException
- if the string array is not validpublic void setProtocols(java.util.Set desc_item)
desc_item
- set of protocolspublic void setProtocols(java.lang.String[] desc_item)
desc_item
- string array of protocolspublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(ServiceDescription new_desc)
new_desc
- service description to be comparedpublic static void main(java.lang.String[] args)
args
- arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |