Class MicroAgentFeature

java.lang.Object
jadex.micro.impl.MicroAgentFeature
All Implemented Interfaces:
jadex.execution.impl.ILifecycle

public class MicroAgentFeature extends Object implements jadex.execution.impl.ILifecycle
  • Field Details

  • Constructor Details

    • MicroAgentFeature

      protected MicroAgentFeature(MicroAgent self)
  • Method Details

    • get

      public static MicroAgentFeature get()
    • getSelf

      public MicroAgent getSelf()
    • onStart

      public jadex.future.IFuture<Void> onStart()
      Specified by:
      onStart in interface jadex.execution.impl.ILifecycle
    • onEnd

      public jadex.future.IFuture<Void> onEnd()
      Specified by:
      onEnd in interface jadex.execution.impl.ILifecycle
    • injectStuff

      public static jadex.future.IFuture<Void> injectStuff(MicroAgent component, Object target, InjectionInfoHolder holder)
      Inject according to the annotations.
      Parameters:
      component - The component.
      target - The target.
    • setFieldValue

      protected static void setFieldValue(MicroAgent component, Object target, Object val, Field field, String convert)
      Set an injected field value.
    • invokeMethod

      public static jadex.future.IFuture<Void> invokeMethod(MicroAgent component, Class<? extends Annotation> ann, Object[] args)
      Invoke an agent method by injecting required arguments.