Package jade.domain.FIPAAgentManagement
Class APDescription
- java.lang.Object
-
- jade.domain.FIPAAgentManagement.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 Summary
Constructors Constructor Description APDescription()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAPServices(APService a)Add a service to theap-servicesslot collection of this object.voidclearAllAPServices()Remove all services from theap-servicesslot collection of this object.IteratorgetAllAPServices()Access all services from theap-servicesslot collection of this object.StringgetName()Retrieve thenameslot of this object.booleanremoveAPServices(APService a)Remove a service from theap-servicesslot collection of this object.voidsetName(String n)Set thenameslot of this object.StringtoString()Retrieve a string representation for this platform description.
-
-
-
Method Detail
-
setName
public void setName(String n)
Set thenameslot of this object.- Parameters:
n- The string for the platform name.
-
getName
public String getName()
Retrieve thenameslot of this object.- Returns:
- The value of the
nameslot of this platform description, ornullif no value was set.
-
addAPServices
public void addAPServices(APService a)
Add a service to theap-servicesslot collection of this object.- Parameters:
a- The platform service to add to the collection.
-
removeAPServices
public boolean removeAPServices(APService a)
Remove a service from theap-servicesslot 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 theap-servicesslot collection of this object.
-
getAllAPServices
public Iterator getAllAPServices()
Access all services from theap-servicesslot collection of this object.- Returns:
- An iterator over the services collection.
-
-