jade.content
Class OntoAID

java.lang.Object
  |
  +--jade.core.AID
        |
        +--jade.content.OntoAID

public class OntoAID
extends AID
implements Concept

Author:
Giovanni Caire - TILAB
See Also:
Serialized Form

Fields inherited from class jade.core.AID
ISGUID, ISLOCALNAME
 
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, getLocalName, getName, getResolversArray, hashCode, removeAddresses, removeResolvers, removeUserDefinedSlot, setLocalName, setName, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

wrap

public static OntoAID wrap(AID id)
Create an ontological Agent identifier that wraps an existing AID.
Parameters:
id - the AIDto 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