public final class BehaviorLife extends AgentTraitLife
Modifier and Type | Method and Description |
---|---|
static BehaviorLife |
getBehaviorLife(behavior : Behavior,
factories : javax.inject.Provider<Factories>,
[init : (BehaviorLife)=>void])
Replies the data structure that is storing the living data of the agent for the SRE.
|
static BehaviorLife |
getBehaviorLifeOrNull(behavior : Behavior)
Replies the data structure that is storing the living data of the agent for the SRE.
|
addTaskReference, removeAllTaskReferences, removeTaskReference
@Pure
public static def
getBehaviorLife(behavior : Behavior,
factories : javax.inject.Provider<Factories>,
[init : (BehaviorLife)=>void]) : BehaviorLife
BehaviorLife
behavior
- the instance of the behavior for which the life description should be retrievedfactories
- the provider of factoriesinit
- the code to run when the behavior life is created.BehaviorLife.getBehaviorLifeOrNull(io.sarl.lang.core.Behavior)
@Pure
public static def
getBehaviorLifeOrNull(behavior : Behavior) : BehaviorLife
BehaviorLife
behavior
- the instance of the behavior for which the life description should be retrievedBehaviorLife.getBehaviorLife(io.sarl.lang.core.Behavior, javax.inject.Provider<io.sarl.sre.internal.Factories>, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super io.sarl.sre.services.lifecycle.BehaviorLife>)
Copyright © 2021 the original authors or authors.