Package jade.content
Class OntoAID
- java.lang.Object
-
- jade.core.AID
-
- jade.content.OntoAID
-
- All Implemented Interfaces:
Concept,Term,Comparable,Serializable,Serializable,Comparable
public class OntoAID extends AID implements Concept
Utility class that allow using anAIDobject as an ontological concept.- Author:
- Giovanni Caire - TILAB
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jade.core.AID
AGENT_CLASSNAME, CLONE_ORIGINATOR, HAP_SEPARATOR, ISGUID, ISLOCALNAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResolvers(AID aid)This method is redefined so that resolvers AID are automatically wrapped into OntoAIDsstatic OntoAIDwrap(AID id)Create an ontological Agent identifier that wraps an existingAID.-
Methods inherited from class jade.core.AID
addAddresses, addUserDefinedSlot, clearAllAddresses, clearAllResolvers, clone, compareTo, createGUID, equals, getAddressesArray, getAllAddresses, getAllResolvers, getAllUserDefinedSlot, getHap, getLocalName, getName, getResolversArray, hashCode, removeAddresses, removeResolvers, removeUserDefinedSlot, setLocalName, setName, toString
-
-
-
-
Constructor Detail
-
OntoAID
public OntoAID()
Constructs an ontological Agent-Identifier whose slot name is set to an empty string- See Also:
AID()
-
OntoAID
public OntoAID(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 passednameis already a globally unique identifier or not. Two constantsISGUID,ISLOCALNAMEhave 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(String, boolean)
-
-
Method Detail
-
wrap
public static OntoAID wrap(AID id)
Create an ontological Agent identifier that wraps an existingAID.- Parameters:
id- theAIDto be wrapped. Ifidis already an ontological agent identifier no new object is created andidis 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:
addResolversin classAID
-
-