jade.domain.FIPAAgentManagement
Class APDescription

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

public class APDescription
extends java.lang.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: 2003-11-24 14:47:00 +0100 (Mon, 24 Nov 2003) $ $Revision: 4597 $
Author:
Giovanni Rimassa - Universita' di Parma, Alessandro Chiarotto - TILAB
See Also:
FIPAManagementOntology, Serialized Form

Constructor Summary
APDescription()
          Default constructor.
 
Method Summary
 void addAPServices(APService a)
          Add a service to the ap-services slot collection of this object.
 void clearAllAPServices()
          Remove all services from the ap-services slot collection of this object.
 Iterator getAllAPServices()
          Access all services from the ap-services slot collection of this object.
 java.lang.String getName()
          Retrieve the name slot of this object.
 boolean removeAPServices(APService a)
          Remove a service from the ap-services slot collection of this object.
 void setName(java.lang.String n)
          Set the name slot of this object.
 java.lang.String toString()
          Retrieve a string representation for this platform description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

APDescription

public APDescription()
Default constructor.

Method Detail

setName

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

Parameters:
n - The string for the platform name.

getName

public java.lang.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 java.lang.String toString()
Retrieve a string representation for this platform description.

Overrides:
toString in class java.lang.Object
Returns:
an SL0-like String representation of this object


JADE