jade.domain.FIPAAgentManagement
Class APService

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

public class APService
extends java.lang.Object
implements Concept

This class implements the concept of the fipa-agent-management ontology representing the description of a platform service.

Version:
$Date: 2003-11-24 14:47:00 +0100 (lun, 24 nov 2003) $ $Revision: 4597 $
Author:
Fabio Bellifemine - CSELT
See Also:
Serialized Form

Constructor Summary
APService()
          Default constructor.
APService(java.lang.String type, java.lang.String[] addresses)
          Constructor.
 
Method Summary
 void addAddresses(java.lang.String address)
          Add a service to the addresses slot collection of this object.
 void clearAllAddresses()
          Remove all addresses from the addresses slot collection of this object.
 Iterator getAllAddresses()
          Access all addresses from the addresses slot collection of this object.
 java.lang.String getName()
          Retrieve the name slot of this object.
 java.lang.String getType()
          Retrieve the type slot of this object.
 boolean removeAddresses(java.lang.String address)
          Remove a service from the addresses slot collection of this object.
 void setName(java.lang.String n)
          Set the name slot of this object.
 void setType(java.lang.String t)
          Set the type slot of this object.
 java.lang.String toString()
          Retrieve a string representation for this platform service description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

APService

public APService()
Default constructor. Necessary for ontological classes.


APService

public APService(java.lang.String type,
                 java.lang.String[] addresses)
Constructor. Create a new APService where name and type get the same value (i.e. the passed type parameter).

Method Detail

setName

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

Parameters:
n - The string for the platform service name.

getName

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

Returns:
The value of the name slot of this platform 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 string for the platform service type.

getType

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

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

addAddresses

public void addAddresses(java.lang.String address)
Add a service to the addresses slot collection of this object.


removeAddresses

public boolean removeAddresses(java.lang.String address)
Remove a service from the addresses slot collection of this object.

Returns:
A boolean, telling whether the element was present in the collection or not.

clearAllAddresses

public void clearAllAddresses()
Remove all addresses from the addresses slot collection of this object.


getAllAddresses

public Iterator getAllAddresses()
Access all addresses from the addresses slot collection of this object.

Returns:
An iterator over the addresses collection.

toString

public java.lang.String toString()
Retrieve a string representation for this platform service description.

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


JADE