io.sarl.api.naming.name
Class AgentName
All Superinterfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<T>
class AgentName
extends SarlName
This class represents an agent name.

The different components of an agent name are:
  • contextId (optional) : the identifier of the context in which the agent is located. If it is null, the the spaceId component is equal to null.
  • spaceId (optional) : the identifier of the space in which the agent is registered.
  • agentId (mandatory) : the identifier of the agent.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.naming
Since:
0.12
Property Summary
Modifier and type Property and description
java.util.UUID agentId
java.util.UUID contextId
java.util.UUID spaceId
Field Summary
Modifier and type Field and description
public static val java.lang.String SCHEME
Scheme for agents.
Constructor Summary
Constructor and description
new(URI,UUID,UUID,UUID)
Constructor.
Action Summary
Modifier and type Action and description
java.util.UUID getAgentId
java.util.UUID getContextId
java.util.UUID getSpaceId
Property Details
agentId
val agentId : java.util.UUID

This property is an alias for the action: getAgentId

contextId
val contextId : java.util.UUID

This property is an alias for the action: getContextId

spaceId
val spaceId : java.util.UUID

This property is an alias for the action: getSpaceId

Field Details
SCHEME
public static val SCHEME : java.lang.String = "agent"
Scheme for agents.
Constructor Details
new(URI,UUID,UUID,UUID)
new(URI,UUID,UUID,UUID)
Constructor.
Parameters:
uri - the uri of the context.
contextId - the identifier of the context.
spaceId - the identifier of the space.
agentId - the identifier of the agent.
Action Details
getAgentId
def getAgentId : java.util.UUID
getContextId
def getContextId : java.util.UUID
getSpaceId
def getSpaceId : java.util.UUID