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 Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Class<? extends Annotation>, jadex.common.MethodInfo> The agent methods for given annotations (if any).protected InjectionInfoHolderThe injection info.protected jadex.common.ClassInfoThe micro agent class.Fields inherited from class jadex.model.impl.CacheableKernelModel
lastchecked, lastmodified, modelinfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAgentInjection(jadex.common.FieldInfo field) Add an injection field.voidaddArgumentInjection(String name, jadex.common.FieldInfo field, String convert) Add an injection field.voidaddFeatureInjection(String name, jadex.common.FieldInfo field) Add an injection field.voidaddParentInjection(jadex.common.FieldInfo field) Add an injection field.voidaddResultInjection(String name, jadex.common.FieldInfo field, String convert, String convback) Add an injection field.voidaddServiceCall(jadex.model.ServiceCallInfo call) Add an call field.jadex.common.FieldInfo[]Get the agent injection fields.jadex.common.MethodInfogetAgentMethod(Class<? extends Annotation> ann) Get an agent method.String[]Get the argument injection names.jadex.common.Tuple2<jadex.common.FieldInfo,String>[] getArgumentInjections(String name) Get the argument injection fields.jadex.common.FieldInfo[]Get the feature injection fields.Get the injection info holder.jadex.common.FieldInfo[]Get the parentinjections fields.jadex.common.ClassInfoGet the pojo class.getResultInjection(String name) Get the result injection field.String[]Get the Result injection names.List<jadex.model.ServiceCallInfo> Get the service call fields.voidsetAgentMethod(Class<? extends Annotation> ann, jadex.common.MethodInfo mi) Set an agent method.voidsetPojoClass(jadex.common.ClassInfo pojoclass) Set the pojo class.voidsetServiceCalls(List<jadex.model.ServiceCallInfo> servicecalls) Set the service calls.Methods inherited from class jadex.model.impl.CacheableKernelModel
getFilename, getLastChecked, getLastModified, getModelInfo, setLastChecked, setLastModified
-
Field Details
-
pojoclass
protected jadex.common.ClassInfo pojoclassThe micro agent class. -
agentmethods
The agent methods for given annotations (if any). -
ii
The injection info.
-
-
Constructor Details
-
MicroModel
public MicroModel(jadex.model.modelinfo.IModelInfo modelinfo) Create a new model.
-
-
Method Details
-
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
Add an injection field.- Parameters:
name- The name.field- The field.
-
getArgumentInjections
Get the argument injection fields.- Returns:
- The fields.
-
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
Get the result injection field.- Returns:
- The fields.
-
getResultInjectionNames
Get the Result injection names.- Returns:
- The names.
-
addFeatureInjection
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
Get the service call fields.- Returns:
- The field or method infos.
-
setServiceCalls
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
Set an agent method. -
getAgentMethod
Get an agent method.
-