@Deprecated public class AgentIdentifier extends Object implements Identifier
The agent identifier must be unique along all the kernel which are accessible by this agent.
This identifier is composed of two parts:
UUID
)Constructor and Description |
---|
AgentIdentifier()
Deprecated.
Create a new identifier.
|
AgentIdentifier(KernelIdentifier kernelId,
String agentId)
Deprecated.
Spawn an existing identifier.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Identifier id)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
KernelIdentifier |
getKernelId()
Deprecated.
Replies the kernel's identifier part of this agent's identifier.
|
String |
getString()
Deprecated.
Replies the string representation associated to this identifier or
if it was never set, the result of
toString() |
(package private) void |
setStringRepresentation(String str)
Deprecated.
Set the string representation of this identifier.
|
String |
toString()
Deprecated.
|
public AgentIdentifier()
public AgentIdentifier(KernelIdentifier kernelId, String agentId)
kernelId
- is the kernel identifier where the agent was spawn for the first time.agentId
- is the agent identifier computed by the kernel.public String toString()
toString
in interface Identifier
toString
in class Object
public String getString()
toString()
public boolean equals(Object o)
equals
in interface Identifier
equals
in class Object
public int compareTo(Identifier id)
compareTo
in interface Comparable<Identifier>
public KernelIdentifier getKernelId()
The kernel identifier basically corresponds to the kernel that on which the agent was spawn for the first time.
void setStringRepresentation(String str)
str
- is the string representation associated to this identifier.Copyright © 2003-2013 Arakhnê.org Members. All rights reserved under LGPL license terms.