Package jadex.bdiv3x.features
Class BDIXLifecycleAgentFeature
- java.lang.Object
- 
- jadex.bridge.component.impl.AbstractComponentFeature
- 
- jadex.bridge.component.impl.ComponentLifecycleFeature
- 
- jadex.bdiv3x.features.BDIXLifecycleAgentFeature
 
 
 
- 
- All Implemented Interfaces:
- jadex.bdiv3.features.impl.IInternalBDILifecycleFeature,- IComponentFeature,- ILifecycleComponentFeature
 
 public class BDIXLifecycleAgentFeature extends jadex.bridge.component.impl.ComponentLifecycleFeature implements jadex.bdiv3.features.impl.IInternalBDILifecycleFeatureFeature that ensures the bdi behavior is started. Differs from pojo BDILifecycleAgentFeature by extending ComponentLifecycleFeature.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBDIXLifecycleAgentFeature.EndBehaviorExtracted end behavior.static classBDIXLifecycleAgentFeature.StartBehaviorExtracted start behavior.
 - 
Field SummaryFields Modifier and Type Field Description static IComponentFeatureFactoryFACTORYThe factory.protected booleaninitedIs the agent inited and allowed to execute rules?protected booleanshutdownIs the agent in shutdown?.
 - 
Constructor SummaryConstructors Constructor Description BDIXLifecycleAgentFeature(IInternalAccess component, ComponentCreationInfo cinfo)Factory method constructor for instance level.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>body()Execute the functional body of the agent.protected BDIXLifecycleAgentFeature.EndBehaviorcreateEndBehavior()Create the end behavior.protected BDIXLifecycleAgentFeature.StartBehaviorcreateStartBehavior()Create the start behavior.booleanisInited()Get the inited.booleanisShutdown()Get the shutdown.voidsetInited(boolean inited)The inited to set.voidsetShutdown(boolean shutdown)Set the shutdown.IFuture<java.lang.Void>shutdown()Start the end state.- 
Methods inherited from class jadex.bridge.component.impl.ComponentLifecycleFeaturegetInitialSteps, hasUserBody
 
- 
 
- 
- 
- 
Field Detail- 
FACTORYpublic static final IComponentFeatureFactory FACTORY The factory.
 - 
initedprotected boolean inited Is the agent inited and allowed to execute rules?
 - 
shutdownprotected boolean shutdown Is the agent in shutdown?.
 
- 
 - 
Constructor Detail- 
BDIXLifecycleAgentFeaturepublic BDIXLifecycleAgentFeature(IInternalAccess component, ComponentCreationInfo cinfo) Factory method constructor for instance level.
 
- 
 - 
Method Detail- 
bodypublic IFuture<java.lang.Void> body() Execute the functional body of the agent. Is only called once.- Specified by:
- bodyin interface- IComponentFeature
- Overrides:
- bodyin class- jadex.bridge.component.impl.ComponentLifecycleFeature
 
 - 
createStartBehaviorprotected BDIXLifecycleAgentFeature.StartBehavior createStartBehavior() Create the start behavior.
 - 
createEndBehaviorprotected BDIXLifecycleAgentFeature.EndBehavior createEndBehavior() Create the end behavior.
 - 
shutdownpublic IFuture<java.lang.Void> shutdown() Start the end state.- Specified by:
- shutdownin interface- IComponentFeature
- Overrides:
- shutdownin class- jadex.bridge.component.impl.ComponentLifecycleFeature
 
 - 
isInitedpublic boolean isInited() Get the inited.- Specified by:
- isInitedin interface- jadex.bdiv3.features.impl.IInternalBDILifecycleFeature
- Returns:
- The inited.
 
 - 
setInitedpublic void setInited(boolean inited) The inited to set.- Specified by:
- setInitedin interface- jadex.bdiv3.features.impl.IInternalBDILifecycleFeature
- Parameters:
- inited- The inited to set
 
 - 
isShutdownpublic boolean isShutdown() Get the shutdown.- Specified by:
- isShutdownin interface- jadex.bdiv3.features.impl.IInternalBDILifecycleFeature
- Returns:
- The shutdown
 
 - 
setShutdownpublic void setShutdown(boolean shutdown) Set the shutdown.- Specified by:
- setShutdownin interface- jadex.bdiv3.features.impl.IInternalBDILifecycleFeature
- Parameters:
- shutdown- The shutdown to set
 
 
- 
 
-