public class BDIXLifecycleAgentFeature extends jadex.bridge.component.impl.ComponentLifecycleFeature implements IInternalBDILifecycleFeature
Modifier and Type | Class and Description |
---|---|
static class |
BDIXLifecycleAgentFeature.EndBehavior
Extracted end behavior.
|
static class |
BDIXLifecycleAgentFeature.StartBehavior
Extracted start behavior.
|
Modifier and Type | Field and Description |
---|---|
static jadex.bridge.component.IComponentFeatureFactory |
FACTORY
The factory.
|
protected boolean |
inited
Is the agent inited and allowed to execute rules?
|
protected boolean |
shutdown
Is the agent in shutdown?.
|
Constructor and Description |
---|
BDIXLifecycleAgentFeature(jadex.bridge.IInternalAccess component,
jadex.bridge.component.ComponentCreationInfo cinfo)
Factory method constructor for instance level.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
body()
Execute the functional body of the agent.
|
protected BDIXLifecycleAgentFeature.EndBehavior |
createEndBehavior()
Create the end behavior.
|
protected BDIXLifecycleAgentFeature.StartBehavior |
createStartBehavior()
Create the start behavior.
|
boolean |
isInited()
Get the inited.
|
boolean |
isShutdown()
Get the shutdown.
|
void |
setInited(boolean inited)
The inited to set.
|
void |
setShutdown(boolean shutdown)
Set the shutdown.
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdown()
Start the end state.
|
public static final jadex.bridge.component.IComponentFeatureFactory FACTORY
protected boolean inited
protected boolean shutdown
public BDIXLifecycleAgentFeature(jadex.bridge.IInternalAccess component, jadex.bridge.component.ComponentCreationInfo cinfo)
public jadex.commons.future.IFuture<java.lang.Void> body()
body
in interface jadex.bridge.component.IComponentFeature
body
in class jadex.bridge.component.impl.ComponentLifecycleFeature
protected BDIXLifecycleAgentFeature.StartBehavior createStartBehavior()
protected BDIXLifecycleAgentFeature.EndBehavior createEndBehavior()
public jadex.commons.future.IFuture<java.lang.Void> shutdown()
shutdown
in interface jadex.bridge.component.IComponentFeature
shutdown
in class jadex.bridge.component.impl.ComponentLifecycleFeature
public boolean isInited()
isInited
in interface IInternalBDILifecycleFeature
public void setInited(boolean inited)
setInited
in interface IInternalBDILifecycleFeature
inited
- The inited to setpublic boolean isShutdown()
isShutdown
in interface IInternalBDILifecycleFeature
public void setShutdown(boolean shutdown)
setShutdown
in interface IInternalBDILifecycleFeature
shutdown
- The shutdown to set