Class APDescription

  • All Implemented Interfaces:
    Concept, Term, Serializable, Serializable

    public class APDescription
    extends Object
    implements Concept
    This class implements the concept of the fipa-agent-management ontology representing the description of an agent platform as it can be retrieved from the AMS.
    Version:
    $Date$ $Revision$
    Author:
    Giovanni Rimassa - Universita' di Parma, Alessandro Chiarotto - TILAB
    See Also:
    FIPAManagementOntology, Serialized Form
    • Constructor Detail

      • APDescription

        public APDescription()
        Default constructor.
    • Method Detail

      • setName

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

        public String getName()
        Retrieve the name slot of this object.
        Returns:
        The value of the name slot of this platform description, or null if no value was set.
      • addAPServices

        public void addAPServices​(APService a)
        Add a service to the ap-services slot collection of this object.
        Parameters:
        a - The platform service to add to the collection.
      • removeAPServices

        public boolean removeAPServices​(APService a)
        Remove a service from the ap-services slot collection of this object.
        Parameters:
        a - The platform service to remove from the collection.
        Returns:
        A boolean, telling whether the element was present in the collection or not.
      • clearAllAPServices

        public void clearAllAPServices()
        Remove all services from the ap-services slot collection of this object.
      • getAllAPServices

        public Iterator getAllAPServices()
        Access all services from the ap-services slot collection of this object.
        Returns:
        An iterator over the services collection.
      • toString

        public String toString()
        Retrieve a string representation for this platform description.
        Overrides:
        toString in class Object
        Returns:
        an SL0-like String representation of this object