Package jade.domain.FIPAAgentManagement
Class ServiceDescription
- java.lang.Object
-
- jade.domain.FIPAAgentManagement.ServiceDescription
-
- All Implemented Interfaces:
Concept,Term,Serializable,Serializable
public class ServiceDescription extends Object implements Concept
This class models a service data type.- Version:
- $Date$ $Revision$
- Author:
- Fabio Bellifemine - CSELT S.p.A.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceDescription()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLanguages(String l)Add a content language name to thelanguagesslot collection of this object.voidaddOntologies(String o)Add an ontology name to theontologiesslot collection of this object.voidaddProperties(Property p)Add a property to thepropertiesslot collection of this object.voidaddProtocols(String ip)Add a protocol name to theprotocolsslot collection of this object.voidclearAllLanguages()Remove all content language names from thelanguagesslot collection of this object.voidclearAllOntologies()Remove all ontology names from theontologiesslot collection of this object.voidclearAllProperties()Remove all properties from thepropertiesslot collection of this object.voidclearAllProtocols()Remove all protocol names from theprotocolsslot collection of this object.IteratorgetAllLanguages()Access all content language names from thelanguagesslot collection of this object.IteratorgetAllOntologies()Access all ontology names from theontologiesslot collection of this object.IteratorgetAllProperties()Access all properties from thepropertiesslot collection of this object.IteratorgetAllProtocols()Access all protocol names from theprotocolsslot collection of this object.StringgetName()Retrieve thenameslot of this object.StringgetOwnership()Retrieve theownershipslot of this object.StringgetType()Retrieve thetypeslot of this object.booleanremoveLanguages(String l)Remove a content language name from thelanguagesslot collection of this object.booleanremoveOntologies(String o)Remove an ontology name from theontologiesslot collection of this object.booleanremoveProperties(Property p)Remove a property from thepropertiesslot collection of this object.booleanremoveProtocols(String ip)Remove a protocol name from theprotocolsslot collection of this object.voidsetName(String n)Set thenameslot of this object.voidsetOwnership(String o)Set theownershipslot of this object.voidsetType(String t)Set thetypeslot of this object.
-
-
-
Method Detail
-
setName
public void setName(String n)
Set thenameslot of this object.- Parameters:
n- The name of the described service.
-
getName
public String getName()
Retrieve thenameslot of this object.- Returns:
- The value of the
nameslot of this service description, ornullif no value was set.
-
setType
public void setType(String t)
Set thetypeslot of this object.- Parameters:
t- The type of the described service.
-
getType
public String getType()
Retrieve thetypeslot of this object.- Returns:
- The value of the
typeslot of this service description, ornullif no value was set.
-
addProtocols
public void addProtocols(String ip)
Add a protocol name to theprotocolsslot collection of this object.- Parameters:
ip- The protocol name to add to the collection.
-
removeProtocols
public boolean removeProtocols(String ip)
Remove a protocol name from theprotocolsslot collection of this object.- Parameters:
ip- The protocol name to remove from the collection.- Returns:
- A boolean, telling whether the element was present in the collection or not.
-
clearAllProtocols
public void clearAllProtocols()
Remove all protocol names from theprotocolsslot collection of this object.
-
getAllProtocols
public Iterator getAllProtocols()
Access all protocol names from theprotocolsslot collection of this object.- Returns:
- An iterator over the protocol names collection.
-
addOntologies
public void addOntologies(String o)
Add an ontology name to theontologiesslot collection of this object.- Parameters:
o- The ontology name to add to the collection.
-
removeOntologies
public boolean removeOntologies(String o)
Remove an ontology name from theontologiesslot collection of this object.- Parameters:
o- The ontology name to remove from the collection.- Returns:
- A boolean, telling whether the element was present in the collection or not.
-
clearAllOntologies
public void clearAllOntologies()
Remove all ontology names from theontologiesslot collection of this object.
-
getAllOntologies
public Iterator getAllOntologies()
Access all ontology names from theontologiesslot collection of this object.- Returns:
- An iterator over the ontology names collection.
-
addLanguages
public void addLanguages(String l)
Add a content language name to thelanguagesslot collection of this object.- Parameters:
l- The content language name to add to the collection.
-
removeLanguages
public boolean removeLanguages(String l)
Remove a content language name from thelanguagesslot collection of this object.- Parameters:
l- The content language name to remove from the collection.- Returns:
- A boolean, telling whether the element was present in the collection or not.
-
clearAllLanguages
public void clearAllLanguages()
Remove all content language names from thelanguagesslot collection of this object.
-
getAllLanguages
public Iterator getAllLanguages()
Access all content language names from thelanguagesslot collection of this object.- Returns:
- An iterator over the content language names collection.
-
setOwnership
public void setOwnership(String o)
Set theownershipslot of this object.- Parameters:
o- The name of the entity owning the described service.
-
getOwnership
public String getOwnership()
Retrieve theownershipslot of this object.- Returns:
- The value of the
ownershipslot of this service description, ornullif no value was set.
-
addProperties
public void addProperties(Property p)
Add a property to thepropertiesslot collection of this object.- Parameters:
p- The property to add to the collection.
-
removeProperties
public boolean removeProperties(Property p)
Remove a property from thepropertiesslot collection of this object.- Parameters:
p- The property to remove from the collection.- Returns:
- A boolean, telling whether the element was present in the collection or not.
-
clearAllProperties
public void clearAllProperties()
Remove all properties from thepropertiesslot collection of this object.
-
getAllProperties
public Iterator getAllProperties()
Access all properties from thepropertiesslot collection of this object.- Returns:
- An iterator over the properties collection.
-
-