public class OntoAID extends AID implements Concept
AID
object
as an ontological concept.AGENT_CLASSNAME, HAP_SEPARATOR, ISGUID, ISLOCALNAME
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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 . |
addAddresses, addUserDefinedSlot, clearAllAddresses, clearAllResolvers, clone, compareTo, createGUID, equals, getAddressesArray, getAllAddresses, getAllResolvers, getAllUserDefinedSlot, getHap, getLocalName, getName, getResolversArray, hashCode, removeAddresses, removeResolvers, removeUserDefinedSlot, setLocalName, setName, toString
public OntoAID()
AID.AID()
public OntoAID(java.lang.String name, boolean isGUID)
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 "@".AID.AID(String, boolean)
public static OntoAID wrap(AID id)
AID
.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.public void addResolvers(AID aid)
addResolvers
in class AID