public class MicroLifecycleComponentFeature
extends jadex.bridge.component.impl.AbstractComponentFeature
implements jadex.bridge.component.ILifecycleComponentFeature
Modifier and Type | Field and Description |
---|---|
static jadex.bridge.component.IComponentFeatureFactory |
FACTORY
The factory.
|
Constructor and Description |
---|
MicroLifecycleComponentFeature(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.
|
java.lang.Object |
getPojoAgent()
Get the pojoagent.
|
protected void |
handleCallback(jadex.bridge.ServiceCallInfo call,
java.lang.Object result)
Handle the result by setting a variable or by calling
a callback method.
|
jadex.commons.future.IFuture<java.lang.Void> |
init()
Initialize the feature.
|
static jadex.commons.future.IFuture<java.lang.Void> |
invokeMethod(jadex.bridge.IInternalAccess component,
java.lang.Class<? extends java.lang.annotation.Annotation> ann,
java.lang.Object[] args)
Invoke an agent method by injecting required arguments.
|
protected void |
invokeServices()
Execute initial service calls.
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdown()
Called just before the agent is removed from the platform.
|
public static final jadex.bridge.component.IComponentFeatureFactory FACTORY
public MicroLifecycleComponentFeature(jadex.bridge.IInternalAccess component, jadex.bridge.component.ComponentCreationInfo cinfo)
public jadex.commons.future.IFuture<java.lang.Void> init()
init
in interface jadex.bridge.component.IComponentFeature
init
in class jadex.bridge.component.impl.AbstractComponentFeature
public jadex.commons.future.IFuture<java.lang.Void> body()
body
in interface jadex.bridge.component.IComponentFeature
body
in class jadex.bridge.component.impl.AbstractComponentFeature
public jadex.commons.future.IFuture<java.lang.Void> shutdown()
shutdown
in interface jadex.bridge.component.IComponentFeature
shutdown
in class jadex.bridge.component.impl.AbstractComponentFeature
public java.lang.Object getPojoAgent()
protected void invokeServices()
protected void handleCallback(jadex.bridge.ServiceCallInfo call, java.lang.Object result)
public static jadex.commons.future.IFuture<java.lang.Void> invokeMethod(jadex.bridge.IInternalAccess component, java.lang.Class<? extends java.lang.annotation.Annotation> ann, java.lang.Object[] args)