io.sarl.lang.core
Class Agent
All Superinterfaces:
IBehaviorGuardEvaluatorReceiver, Identifiable
The definition of the notion of Agent in SARL. An agent is an autonomous entity having some intrinsic skills to realize the capacities it exhibits. An agent defines a context.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Property Summary
Modifier and type Property and description
public java.util.UUID iD
public java.util.UUID parentID
Replies the agent's parent's ID.
Constructor Summary
Constructor and description
new(UUID,UUID)
Creates a new agent with a parent parentID without initializing the built-in capacities.
new(UUID,UUID,DynamicSkillProvider)
Creates a new agent with a parent parentID without initializing the built-in capacities.
Action Summary
Modifier and type Action and description
public java.util.UUID getID
public java.util.UUID getParentID
Replies the agent's parent's ID.
boolean isFromMe(Event)
boolean isMe(Address)
boolean isMe(UUID)
void toString(ToStringBuilder)
Property Details
iD
public val iD : java.util.UUID

This property is an alias for the action: getID

parentID
public val parentID : java.util.UUID
Replies the agent's parent's ID.

This property is an alias for the action: getParentID

Returns:
the identifier of the agent's parent.
Constructor Details
new(UUID,UUID)
new(UUID,UUID)
Creates a new agent with a parent parentID without initializing the built-in capacities.
Parameters:
parentID - the agent's spawner.
agentID - the identifier of the agent, or null for computing it randomly.
Since:
0.5
new(UUID,UUID,DynamicSkillProvider)
new(UUID,UUID,DynamicSkillProvider)
Creates a new agent with a parent parentID without initializing the built-in capacities.
Parameters:
parentID - the agent's spawner.
agentID - the identifier of the agent, or null for computing it randomly.
skillProvider - provides the skills dynamically on demand.
Since:
0.6
Action Details
getID
public def getID : java.util.UUID
getParentID
public def getParentID : java.util.UUID
Replies the agent's parent's ID.
Returns:
the identifier of the agent's parent.
isFromMe(Event)
def isFromMe(Event) : boolean
isMe(Address)
def isMe(Address) : boolean
isMe(UUID)
def isMe(UUID) : boolean
toString(ToStringBuilder)
def toString(ToStringBuilder)