io.sarl.sre.janus.services.lifecycle
Class BehaviorLife
final class BehaviorLife
extends AgentTraitLife
Describes any information that is required by the SRE for supporting the behavior's life.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.6.0
Action Summary
Modifier and type Action and description
static BehaviorLife getBehaviorLife(Behavior,Provider<T>,[Procedure1<Param>])
Replies the data structure that is storing the living data of the agent for the SRE.
static BehaviorLife getBehaviorLifeOrNull(Behavior)
Replies the data structure that is storing the living data of the agent for the SRE.
Action Details
getBehaviorLife(Behavior,Provider<T>,[Procedure1<Param>])
def getBehaviorLife(Behavior,Provider<T>,[Procedure1<Param>]) : BehaviorLife
Replies the data structure that is storing the living data of the agent for the SRE. If this data structure does not exists, it is automatically created.
Parameters:
behavior - the instance of the behavior for which the life description should be retrieved
factories - the provider of factories
init - the code to run when the behavior life is created.
See:
#getBehaviorLifeOrNull
getBehaviorLifeOrNull(Behavior)
def getBehaviorLifeOrNull(Behavior) : BehaviorLife
Replies the data structure that is storing the living data of the agent for the SRE. If this data structure does not exists, it is NOT created.
Parameters:
behavior - the instance of the behavior for which the life description should be retrieved
Since:
0.10
See:
#getBehaviorLife