io.sarl.lang.core
Interface DynamicSkillProvider
All Known Implementing Classes:
DelegateDynamicSkillProvider, SreDynamicSkillProvider
interface DynamicSkillProvider
This interface represents a provider of built-in capacities. The built-in capacities are assumed to be provided by the runtime platform.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.6
Field Summary
Modifier and type Field and description
static val DynamicSkillProvider EMPTY_PROVIDER
A provider that provides nothing.
Action Summary
Modifier and type Action and description
abstract Skill createSkill(Class<T>)
Create the built-in skill that corresponds to the given capacity into the given container.
abstract boolean isSkillProviding(Class<T>)
Replies if this provider could provide the built-in skill that corresponds to the given capacity.
Field Details
EMPTY_PROVIDER
static val EMPTY_PROVIDER : DynamicSkillProvider
A provider that provides nothing.
Since:
0.11
Action Details
createSkill(Class<T>)
def createSkill(Class<T>) : Skill
Create the built-in skill that corresponds to the given capacity into the given container.
Parameters:
capacity - the type of the capacity to retrieve.
Returns:
the skill that should be installed into the sill container or null if none.
isSkillProviding(Class<T>)
def isSkillProviding(Class<T>) : boolean
Replies if this provider could provide the built-in skill that corresponds to the given capacity.
Parameters:
capacity - the type of the capacity to retrieve.
Returns:
true if an instance of skill could be provided for the given capacity.
Since:
0.11