Class ServiceDescription

    • Constructor Detail

      • ServiceDescription

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

      • setName

        public void setName​(String n)
        Set the name slot of this object.
        Parameters:
        n - The name of the described service.
      • getName

        public 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​(String t)
        Set the type slot of this object.
        Parameters:
        t - The type of the described service.
      • getType

        public 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​(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​(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​(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​(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​(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​(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​(String o)
        Set the ownership slot of this object.
        Parameters:
        o - The name of the entity owning the described service.
      • getOwnership

        public 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.