jade.domain.FIPAAgentManagement
Class ServiceDescription

java.lang.Object
  |
  +--jade.domain.FIPAAgentManagement.ServiceDescription
All Implemented Interfaces:
Concept, java.io.Serializable, Serializable, Term

public class ServiceDescription
extends java.lang.Object
implements Concept

This class models a service data type.

Version:
$Date: 2003-11-19 17:04:37 +0100 (Wed, 19 Nov 2003) $ $Revision: 4567 $
Author:
Fabio Bellifemine - CSELT S.p.A.
See Also:
Serialized Form

Constructor Summary
ServiceDescription()
          Default constructor.
 
Method Summary
 void addLanguages(java.lang.String l)
          Add a content language name to the languages slot collection of this object.
 void addOntologies(java.lang.String o)
          Add an ontology name to the ontologies slot collection of this object.
 void addProperties(Property p)
          Add a property to the properties slot collection of this object.
 void addProtocols(java.lang.String ip)
          Add a protocol name to the protocols slot collection of this object.
 void clearAllLanguages()
          Remove all content language names from the languages slot collection of this object.
 void clearAllOntologies()
          Remove all ontology names from the ontologies slot collection of this object.
 void clearAllProperties()
          Remove all properties from the properties slot collection of this object.
 void clearAllProtocols()
          Remove all protocol names from the protocols slot collection of this object.
 Iterator getAllLanguages()
          Access all content language names from the languages slot collection of this object.
 Iterator getAllOntologies()
          Access all ontology names from the ontologies slot collection of this object.
 Iterator getAllProperties()
          Access all properties from the properties slot collection of this object.
 Iterator getAllProtocols()
          Access all protocol names from the protocols slot collection of this object.
 java.lang.String getName()
          Retrieve the name slot of this object.
 java.lang.String getOwnership()
          Retrieve the ownership slot of this object.
 java.lang.String getType()
          Retrieve the type slot of this object.
 boolean removeLanguages(java.lang.String l)
          Remove a content language name from the languages slot collection of this object.
 boolean removeOntologies(java.lang.String o)
          Remove an ontology name from the ontologies slot collection of this object.
 boolean removeProperties(Property p)
          Remove a property from the properties slot collection of this object.
 boolean removeProtocols(java.lang.String ip)
          Remove a protocol name from the protocols slot collection of this object.
 void setName(java.lang.String n)
          Set the name slot of this object.
 void setOwnership(java.lang.String o)
          Set the ownership slot of this object.
 void setType(java.lang.String t)
          Set the type slot of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDescription

public ServiceDescription()
Default constructor. A default constructor is necessary for JADE ontological classes.

Method Detail

setName

public void setName(java.lang.String n)
Set the name slot of this object.

Parameters:
n - The name of the described service.

getName

public java.lang.String getName()
Retrieve the name slot of this object.

Returns:
The value of the name slot of this service description, or null if no value was set.

setType

public void setType(java.lang.String t)
Set the type slot of this object.

Parameters:
t - The type of the described service.

getType

public java.lang.String getType()
Retrieve the type slot of this object.

Returns:
The value of the type slot of this service description, or null if no value was set.

addProtocols

public void addProtocols(java.lang.String ip)
Add a protocol name to the protocols slot collection of this object.

Parameters:
ip - The protocol name to add to the collection.

removeProtocols

public boolean removeProtocols(java.lang.String ip)
Remove a protocol name from the protocols slot 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 the protocols slot collection of this object.


getAllProtocols

public Iterator getAllProtocols()
Access all protocol names from the protocols slot collection of this object.

Returns:
An iterator over the protocol names collection.

addOntologies

public void addOntologies(java.lang.String o)
Add an ontology name to the ontologies slot collection of this object.

Parameters:
o - The ontology name to add to the collection.

removeOntologies

public boolean removeOntologies(java.lang.String o)
Remove an ontology name from the ontologies slot 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 the ontologies slot collection of this object.


getAllOntologies

public Iterator getAllOntologies()
Access all ontology names from the ontologies slot collection of this object.

Returns:
An iterator over the ontology names collection.

addLanguages

public void addLanguages(java.lang.String l)
Add a content language name to the languages slot collection of this object.

Parameters:
l - The content language name to add to the collection.

removeLanguages

public boolean removeLanguages(java.lang.String l)
Remove a content language name from the languages slot 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 the languages slot collection of this object.


getAllLanguages

public Iterator getAllLanguages()
Access all content language names from the languages slot collection of this object.

Returns:
An iterator over the content language names collection.

setOwnership

public void setOwnership(java.lang.String o)
Set the ownership slot of this object.

Parameters:
o - The name of the entity owning the described service.

getOwnership

public java.lang.String getOwnership()
Retrieve the ownership slot of this object.

Returns:
The value of the ownership slot of this service description, or null if no value was set.

addProperties

public void addProperties(Property p)
Add a property to the properties slot collection of this object.

Parameters:
p - The property to add to the collection.

removeProperties

public boolean removeProperties(Property p)
Remove a property from the properties slot 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 the properties slot collection of this object.


getAllProperties

public Iterator getAllProperties()
Access all properties from the properties slot collection of this object.

Returns:
An iterator over the properties collection.


JADE