io.sarl.lang.core
Class Behavior
All Superinterfaces:
IBehaviorGuardEvaluatorReceiver
All Known Subclasses:
FXKillSupportBehavior
abstract behavior Behavior
extends AgentTrait
implements IBehaviorGuardEvaluatorReceiver
A behavior maps a collection of perceptions represented by events to a collection of a task.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Property Summary
Inherited: iD, owner
Constructor Summary
Constructor and description
new(Agent)
Construct a behavior for the given agent.
Action Summary
Modifier and type Action and description
protected void install
This method is called just after the installation of this behavior into its owner agent.
protected void uninstall
This method is called just after the uninstallation of this behavior from its owner agent.
Constructor Details
new(Agent)
new(Agent)
Construct a behavior for the given agent.
Parameters:
agent - the owner of this behavior.
Action Details
install
protected def install
This method is called just after the installation of this behavior into its owner agent. In this method you could init the behavior outside the scheme of the Initialize event, i.e. it is called before the firing of the event.
Since:
0.12
uninstall
protected def uninstall
This method is called just after the uninstallation of this behavior from its owner agent. In this method you could uninit the behavior outside the scheme of the Destroy event, i.e. it is called after the firing of the event.
Since:
0.12