Package jadex.micro

Class MicroModel

java.lang.Object
jadex.model.impl.CacheableKernelModel
jadex.micro.MicroModel
All Implemented Interfaces:
jadex.model.ICacheableModel

public class MicroModel extends jadex.model.impl.CacheableKernelModel
The micro agent model.
  • Field Details

    • pojoclass

      protected jadex.common.ClassInfo pojoclass
      The micro agent class.
    • agentmethods

      protected Map<Class<? extends Annotation>,jadex.common.MethodInfo> agentmethods
      The agent methods for given annotations (if any).
    • ii

      protected InjectionInfoHolder ii
      The injection info.
  • Constructor Details

    • MicroModel

      public MicroModel(jadex.model.modelinfo.IModelInfo modelinfo)
      Create a new model.
  • Method Details

    • getInjectionInfoHolder

      public InjectionInfoHolder getInjectionInfoHolder()
      Get the injection info holder.
      Returns:
      The injection info.
    • addAgentInjection

      public void addAgentInjection(jadex.common.FieldInfo field)
      Add an injection field.
      Parameters:
      field - The field.
    • getAgentInjections

      public jadex.common.FieldInfo[] getAgentInjections()
      Get the agent injection fields.
      Returns:
      The fields.
    • addParentInjection

      public void addParentInjection(jadex.common.FieldInfo field)
      Add an injection field.
      Parameters:
      field - The field.
    • getParentInjections

      public jadex.common.FieldInfo[] getParentInjections()
      Get the parentinjections fields.
      Returns:
      The fields.
    • addArgumentInjection

      public void addArgumentInjection(String name, jadex.common.FieldInfo field, String convert)
      Add an injection field.
      Parameters:
      name - The name.
      field - The field.
    • getArgumentInjections

      public jadex.common.Tuple2<jadex.common.FieldInfo,String>[] getArgumentInjections(String name)
      Get the argument injection fields.
      Returns:
      The fields.
    • getArgumentInjectionNames

      public String[] getArgumentInjectionNames()
      Get the argument injection names.
      Returns:
      The names.
    • addResultInjection

      public void addResultInjection(String name, jadex.common.FieldInfo field, String convert, String convback)
      Add an injection field.
      Parameters:
      name - The name.
      field - The field.
    • getResultInjection

      public jadex.common.Tuple3<jadex.common.FieldInfo,String,String> getResultInjection(String name)
      Get the result injection field.
      Returns:
      The fields.
    • getResultInjectionNames

      public String[] getResultInjectionNames()
      Get the Result injection names.
      Returns:
      The names.
    • addFeatureInjection

      public void addFeatureInjection(String name, jadex.common.FieldInfo field)
      Add an injection field.
      Parameters:
      name - The name.
      field - The field.
    • getFeatureInjections

      public jadex.common.FieldInfo[] getFeatureInjections()
      Get the feature injection fields.
      Returns:
      The fields.
    • addServiceCall

      public void addServiceCall(jadex.model.ServiceCallInfo call)
      Add an call field.
      Parameters:
      name - The name.
      field - The field.
    • getServiceCalls

      public List<jadex.model.ServiceCallInfo> getServiceCalls()
      Get the service call fields.
      Returns:
      The field or method infos.
    • setServiceCalls

      public void setServiceCalls(List<jadex.model.ServiceCallInfo> servicecalls)
      Set the service calls.
    • getPojoClass

      public jadex.common.ClassInfo getPojoClass()
      Get the pojo class.
      Returns:
      The pojoclass.
    • setPojoClass

      public void setPojoClass(jadex.common.ClassInfo pojoclass)
      Set the pojo class.
      Parameters:
      pojoclass - The pojoclass to set
    • setAgentMethod

      public void setAgentMethod(Class<? extends Annotation> ann, jadex.common.MethodInfo mi)
      Set an agent method.
    • getAgentMethod

      public jadex.common.MethodInfo getAgentMethod(Class<? extends Annotation> ann)
      Get an agent method.