io.sarl.api.game.tgob
Interface Action
All Known Implementing Classes:
BaseAction
interface Action
Describes an action that could be done by the agent in the game time-based goal-oriented behavior.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.gametgob
Since:
0.13
Property Summary
Modifier and type Property and description
int duration
Replies the duration of the action in time units
java.lang.String name
Replies the name of the action.
Action Summary
Modifier and type Action and description
abstract int getDuration
Replies the duration of the action in time units
abstract double getInsistenceChangeFor(Goal)
Replies the change to apply to the insistence value of the given goal when this action is apply.
abstract java.lang.String getName
Replies the name of the action.
Property Details
duration
val duration : int
Replies the duration of the action in time units

This property is an alias for the action: getDuration

Returns:
the duration of the action.
name
val name : java.lang.String
Replies the name of the action.

This property is an alias for the action: getName

Returns:
the name.
Action Details
getDuration
def getDuration : int
Replies the duration of the action in time units
Returns:
the duration of the action.
getInsistenceChangeFor(Goal)
def getInsistenceChangeFor(Goal) : double
Replies the change to apply to the insistence value of the given goal when this action is apply.
Returns:
the goal's insistence value after applying this action.
getName
def getName : java.lang.String
Replies the name of the action.
Returns:
the name.