io.sarl.api.game.tgob
Class BaseAction
All Superinterfaces:
Action
@org.eclipse.xtext.xbase.lib.XbaseGenerated
class BaseAction
extends AbstractGob
implements Action
Default implementation of 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
Inherited: name
Constructor Summary
Constructor and description
new([String],[int])
Constructor.
Action Summary
Modifier and type Action and description
int getDuration
double getInsistenceChangeFor(Goal)
void setDuration(int)
void setInsistenceChangeFor(Goal,double)
Change the insistence for the given goal when this action is applied.
java.lang.String toString
Property Details
duration
var duration : int

This property is an alias for the action: getDuration

Constructor Details
new([String],[int])
new([String],[int])
Constructor.
Parameters:
name - the name of the action.
duration - the duration of the action.
Action Details
getDuration
def getDuration : int
getInsistenceChangeFor(Goal)
def getInsistenceChangeFor(Goal) : double
setDuration(int)
def setDuration(int)
setInsistenceChangeFor(Goal,double)
def setInsistenceChangeFor(Goal,double)
Change the insistence for the given goal when this action is applied.
Parameters:
goal - the goal for which the insistence is changed.
insistence - the new positive value of the insistence.
toString
def toString : java.lang.String