public class BDILifecycleAgentFeature extends jadex.micro.features.impl.MicroLifecycleComponentFeature implements IInternalBDILifecycleFeature
Modifier and Type | Class and Description |
---|---|
static class |
BDILifecycleAgentFeature.EndBehavior
Extracted start behavior.
|
static class |
BDILifecycleAgentFeature.EvaluateExpressionCondition
Condition that tests if an expression evalutes to true.
|
static class |
BDILifecycleAgentFeature.LifecycleBehavior
Extracted start behavior.
|
static class |
BDILifecycleAgentFeature.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 |
---|
BDILifecycleAgentFeature(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 BDILifecycleAgentFeature.EndBehavior |
createEndBehavior()
Create the end behavior.
|
protected BDILifecycleAgentFeature.StartBehavior |
createStartBehavior()
Create the start behavior.
|
static boolean |
evaluateCondition(jadex.bridge.IInternalAccess agent,
MCondition cond,
MElement owner,
java.util.Map<java.lang.String,java.lang.Object> vals)
Evaluate the condition.
|
protected static jadex.commons.future.IFuture<java.lang.Boolean> |
executeGoalMethod(java.lang.reflect.Method m,
RProcessableElement goal,
jadex.rules.eca.IEvent event,
jadex.bridge.IInternalAccess component)
Execute a goal method.
|
static jadex.commons.future.IFuture<java.lang.Boolean> |
invokeBooleanMethod(java.lang.Object pojo,
java.lang.reflect.Method m,
MElement modelelement,
jadex.rules.eca.IEvent event,
RPlan rplan,
jadex.bridge.IInternalAccess component)
Assemble fitting parameters from context and invoke a boolean method.
|
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()
Cleanup the agent.
|
getPojoAgent, handleCallback, init, invokeMethod, invokeServices
public static final jadex.bridge.component.IComponentFeatureFactory FACTORY
protected boolean inited
protected boolean shutdown
public BDILifecycleAgentFeature(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.micro.features.impl.MicroLifecycleComponentFeature
protected BDILifecycleAgentFeature.StartBehavior createStartBehavior()
protected BDILifecycleAgentFeature.EndBehavior createEndBehavior()
public jadex.commons.future.IFuture<java.lang.Void> shutdown()
shutdown
in interface jadex.bridge.component.IComponentFeature
shutdown
in class jadex.micro.features.impl.MicroLifecycleComponentFeature
protected static jadex.commons.future.IFuture<java.lang.Boolean> executeGoalMethod(java.lang.reflect.Method m, RProcessableElement goal, jadex.rules.eca.IEvent event, jadex.bridge.IInternalAccess component)
public static jadex.commons.future.IFuture<java.lang.Boolean> invokeBooleanMethod(java.lang.Object pojo, java.lang.reflect.Method m, MElement modelelement, jadex.rules.eca.IEvent event, RPlan rplan, jadex.bridge.IInternalAccess component)
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 setpublic static boolean evaluateCondition(jadex.bridge.IInternalAccess agent, MCondition cond, MElement owner, java.util.Map<java.lang.String,java.lang.Object> vals)