jade.content
Class OntoAID
java.lang.Object
|
+--jade.core.AID
|
+--jade.content.OntoAID
- All Implemented Interfaces:
- Comparable, java.lang.Comparable, Concept, java.io.Serializable, Serializable, Term
- public class OntoAID
- extends AID
- implements Concept
Utility class that allow using an AID
object
as an ontological concept.
- Author:
- Giovanni Caire - TILAB
- See Also:
- Serialized Form
Constructor Summary |
OntoAID()
Constructs an ontological Agent-Identifier whose slot name is
set to an empty string |
OntoAID(java.lang.String name,
boolean isGUID)
Constructor for an ontological Agent-identifier |
Method Summary |
void |
addResolvers(AID aid)
This method is redefined so that resolvers AID are automatically
wrapped into OntoAIDs |
static OntoAID |
wrap(AID id)
Create an ontological Agent identifier that wraps an existing
AID . |
Methods inherited from class jade.core.AID |
addAddresses, addUserDefinedSlot, clearAllAddresses, clearAllResolvers, clone, compareTo, equals, getAddressesArray, getAllAddresses, getAllResolvers, getAllUserDefinedSlot, getHap, getLocalName, getName, getResolversArray, hashCode, removeAddresses, removeResolvers, removeUserDefinedSlot, setLocalName, setName, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
OntoAID
public OntoAID()
- Constructs an ontological Agent-Identifier whose slot name is
set to an empty string
- See Also:
AID.AID()
OntoAID
public OntoAID(java.lang.String name,
boolean isGUID)
- Constructor for an ontological Agent-identifier
- Parameters:
name
- is the value for the slot name for the agent.isGUID
- indicates if the passed name
is already a globally unique identifier or not. Two
constants ISGUID
, ISLOCALNAME
have also been defined for setting a value for this parameter.
If the name is a local name, then the HAP (Home Agent Platform)
is concatenated to the name, separated by "@".- See Also:
AID.AID(String, boolean)
wrap
public static OntoAID wrap(AID id)
- Create an ontological Agent identifier that wraps an existing
AID
.
- Parameters:
id
- the AID
to be wrapped. If id
is already an ontological agent identifier no new object is
created and id
is returned with the resolvers
(if any) properly wrapped.
addResolvers
public void addResolvers(AID aid)
- This method is redefined so that resolvers AID are automatically
wrapped into OntoAIDs
- Overrides:
addResolvers
in class AID
JADE