Package jade.domain.FIPAAgentManagement
Class APService
- java.lang.Object
-
- jade.domain.FIPAAgentManagement.APService
-
- All Implemented Interfaces:
Concept,Term,Serializable,Serializable
public class APService extends Object implements Concept
This class implements the concept of the fipa-agent-management ontology representing the description of a platform service.- Version:
- $Date$ $Revision$
- Author:
- Fabio Bellifemine - CSELT
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAddresses(String address)Add a service to theaddressesslot collection of this object.voidclearAllAddresses()Remove all addresses from theaddressesslot collection of this object.IteratorgetAllAddresses()Access all addresses from theaddressesslot collection of this object.StringgetName()Retrieve thenameslot of this object.StringgetType()Retrieve thetypeslot of this object.booleanremoveAddresses(String address)Remove a service from theaddressesslot collection of this object.voidsetName(String n)Set thenameslot of this object.voidsetType(String t)Set thetypeslot of this object.StringtoString()Retrieve a string representation for this platform service description.
-
-
-
Method Detail
-
setName
public void setName(String n)
Set thenameslot of this object.- Parameters:
n- The string for the platform service name.
-
getName
public String getName()
Retrieve thenameslot of this object.- Returns:
- The value of the
nameslot of this platform service description, ornullif no value was set.
-
setType
public void setType(String t)
Set thetypeslot of this object.- Parameters:
t- The string for the platform service type.
-
getType
public String getType()
Retrieve thetypeslot of this object.- Returns:
- The value of the
typeslot of this platform service description, ornullif no value was set.
-
addAddresses
public void addAddresses(String address)
Add a service to theaddressesslot collection of this object.- Parameters:
a- The address to add to the collection.
-
removeAddresses
public boolean removeAddresses(String address)
Remove a service from theaddressesslot collection of this object.- Parameters:
a- The address to remove from the collection.- Returns:
- A boolean, telling whether the element was present in the collection or not.
-
clearAllAddresses
public void clearAllAddresses()
Remove all addresses from theaddressesslot collection of this object.
-
getAllAddresses
public Iterator getAllAddresses()
Access all addresses from theaddressesslot collection of this object.- Returns:
- An iterator over the addresses collection.
-
-