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

The different components of a behavior 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.
  • behaviorType (mandatory) : the fully qualified name of the behavior type.
  • behaviorIndex (optional) : the index of the behavior to point out when multiple behavior instances of the same type are defined in 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
int behaviorIndex
java.lang.Class<T> behaviorType
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 behaviors.
Constructor Summary
Constructor and description
new(URI,UUID,UUID,UUID,Class<T>,int)
Constructor.
Action Summary
Modifier and type Action and description
java.util.UUID getAgentId
int getBehaviorIndex
java.lang.Class<T> getBehaviorType
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

behaviorIndex
val behaviorIndex : int

This property is an alias for the action: getBehaviorIndex

behaviorType
val behaviorType : java.lang.Class<T>

This property is an alias for the action: getBehaviorType

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 = "behavior"
Scheme for behaviors.
Constructor Details
new(URI,UUID,UUID,UUID,Class<T>,int)
new(URI,UUID,UUID,UUID,Class<T>,int)
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.
behaviorType - the type of the behavior.
behaviorIndex - the index of the behavior in the list of behaviors.
Action Details
getAgentId
def getAgentId : java.util.UUID
getBehaviorIndex
def getBehaviorIndex : int
getBehaviorType
def getBehaviorType : java.lang.Class<T>
getContextId
def getContextId : java.util.UUID
getSpaceId
def getSpaceId : java.util.UUID