io.sarl.lang.core
Annotation DefaultSkill
All Superinterfaces:
java.lang.annotation.Annotation
@java.lang.annotation.Target(TYPE)
@java.lang.annotation.Retention(RUNTIME)
abstract annotation DefaultSkill
implements java.lang.annotation.Annotation
Annotation for associating a capacity and a default skill.

This annotation should be associated to a Capacity. It takes a value that is the type of the skill that should be given to an agent by default when it tries to use the capacity. This annotation is similar to the @ImplementedBy annotation into the injection library.

The SRE could use this annotation to create dynamically the skill when the Agent.getSkill() is called.

This annotation is supported by an implementation of DynamicSkillProvider.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.7
See:
DynamicSkillProvider
Action Summary
Modifier and type Action and description
abstract java.lang.Class<T> value
The type of the implementation skill.
Action Details
value
def value : java.lang.Class<T>
The type of the implementation skill.
Returns:
the type of the implementation skill.