io.sarl.lang.core
Class AbstractSkillContainer
All Superinterfaces:
Identifiable
All Known Subclasses:
Agent
abstract class AbstractSkillContainer
extends AgentProtectedAPIObject
implements Identifiable
The definition of the notion of skill container in SARL.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.11
Property Summary
Inherited: iD
Constructor Summary
Constructor and description
new(DynamicSkillProvider)
Creates a new agent with a parent parentID without initializing the built-in capacities.
Action Summary
Modifier and type Action and description
protected S clearSkill(Class<T>)
protected final S getSkill(Class<T>)
protected boolean hasSkill(Class<T>)
protected void operator_mappedTo(Class<T>,S)
protected final S setSkill(S,Class<T>*)
protected final void setSkillIfAbsent(Skill,Class<T>*)
Constructor Details
new(DynamicSkillProvider)
new(DynamicSkillProvider)
Creates a new agent with a parent parentID without initializing the built-in capacities.
Parameters:
skillProvider - provides the skills dynamically on demand.
Since:
0.6
Action Details
clearSkill(Class<T>)
protected def clearSkill(Class<T>) : S

with S extends Capacity

getSkill(Class<T>)
protected def getSkill(Class<T>) : S

with S extends Capacity

hasSkill(Class<T>)
protected def hasSkill(Class<T>) : boolean
operator_mappedTo(Class<T>,S)
protected def operator_mappedTo(Class<T>,S)

with S extends Skill

setSkill(S,Class<T>*)
protected def setSkill(S,Class<T>*) : S

with S extends Skill

setSkillIfAbsent(Skill,Class<T>*)
protected def setSkillIfAbsent(Skill,Class<T>*)