Package jadex.micro
Class MicroModel
- java.lang.Object
- 
- jadex.kernelbase.CacheableKernelModel
- 
- jadex.micro.MicroModel
 
 
- 
- All Implemented Interfaces:
- ICacheableModel
 - Direct Known Subclasses:
- BDIModel
 
 public class MicroModel extends jadex.kernelbase.CacheableKernelModelThe micro agent model.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMicroModel.ServiceInjectionInfoStruct for injection info.
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MethodInfo>agentmethodsThe agent methods for given annotations (if any).protected java.lang.ClassLoaderclassloaderThe class loader.protected InjectionInfoHolderiiThe injection info.protected ClassInfopojoclassThe micro agent class.
 - 
Constructor SummaryConstructors Constructor Description MicroModel(IModelInfo modelinfo)Create a new model.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAgentInjection(FieldInfo field)Add an injection field.voidaddArgumentInjection(java.lang.String name, FieldInfo field, java.lang.String convert)Add an injection field.voidaddFeatureInjection(java.lang.String name, FieldInfo field)Add an injection field.voidaddParentInjection(FieldInfo field)Add an injection field.voidaddResultInjection(java.lang.String name, FieldInfo field, java.lang.String convert, java.lang.String convback)Add an injection field.voidaddServiceCall(ServiceCallInfo call)Add an call field.FieldInfo[]getAgentInjections()Get the agent injection fields.MethodInfogetAgentMethod(java.lang.Class<? extends java.lang.annotation.Annotation> ann)Get an agent method.java.lang.String[]getArgumentInjectionNames()Get the argument injection names.Tuple2<FieldInfo,java.lang.String>[]getArgumentInjections(java.lang.String name)Get the argument injection fields.java.lang.ClassLoadergetClassloader()Get the classloader.FieldInfo[]getFeatureInjections()Get the feature injection fields.InjectionInfoHoldergetInjectionInfoHolder()Get the injection info holder.FieldInfo[]getParentInjections()Get the parentinjections fields.ClassInfogetPojoClass()Get the pojo class.Tuple3<FieldInfo,java.lang.String,java.lang.String>getResultInjection(java.lang.String name)Get the result injection field.java.lang.String[]getResultInjectionNames()Get the Result injection names.java.util.List<ServiceCallInfo>getServiceCalls()Get the service call fields.java.lang.String[]getServiceInjectionNames()Get the service injection names.MicroModel.ServiceInjectionInfo[]getServiceInjections(java.lang.String name)Get the service injection fields.voidsetAgentMethod(java.lang.Class<? extends java.lang.annotation.Annotation> ann, MethodInfo mi)Set an agent method.voidsetClassloader(java.lang.ClassLoader classloader)Set the classloader.voidsetPojoClass(ClassInfo pojoclass)Set the pojo class.voidsetServiceCalls(java.util.List<ServiceCallInfo> servicecalls)Set the service calls.
 
- 
- 
- 
Field Detail- 
pojoclassprotected ClassInfo pojoclass The micro agent class.
 - 
classloaderprotected java.lang.ClassLoader classloader The class loader.
 - 
agentmethodsprotected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MethodInfo> agentmethods The agent methods for given annotations (if any).
 - 
iiprotected InjectionInfoHolder ii The injection info.
 
- 
 - 
Constructor Detail- 
MicroModelpublic MicroModel(IModelInfo modelinfo) Create a new model.
 
- 
 - 
Method Detail- 
getInjectionInfoHolderpublic InjectionInfoHolder getInjectionInfoHolder() Get the injection info holder.- Returns:
- The injection info.
 
 - 
addAgentInjectionpublic void addAgentInjection(FieldInfo field) Add an injection field.- Parameters:
- field- The field.
 
 - 
getAgentInjectionspublic FieldInfo[] getAgentInjections() Get the agent injection fields.- Returns:
- The fields.
 
 - 
addParentInjectionpublic void addParentInjection(FieldInfo field) Add an injection field.- Parameters:
- field- The field.
 
 - 
getParentInjectionspublic FieldInfo[] getParentInjections() Get the parentinjections fields.- Returns:
- The fields.
 
 - 
addArgumentInjectionpublic void addArgumentInjection(java.lang.String name, FieldInfo field, java.lang.String convert)Add an injection field.- Parameters:
- name- The name.
- field- The field.
 
 - 
getArgumentInjectionspublic Tuple2<FieldInfo,java.lang.String>[] getArgumentInjections(java.lang.String name) Get the argument injection fields.- Returns:
- The fields.
 
 - 
getArgumentInjectionNamespublic java.lang.String[] getArgumentInjectionNames() Get the argument injection names.- Returns:
- The names.
 
 - 
addResultInjectionpublic void addResultInjection(java.lang.String name, FieldInfo field, java.lang.String convert, java.lang.String convback)Add an injection field.- Parameters:
- name- The name.
- field- The field.
 
 - 
getResultInjectionpublic Tuple3<FieldInfo,java.lang.String,java.lang.String> getResultInjection(java.lang.String name) Get the result injection field.- Returns:
- The fields.
 
 - 
getResultInjectionNamespublic java.lang.String[] getResultInjectionNames() Get the Result injection names.- Returns:
- The names.
 
 - 
getServiceInjectionspublic MicroModel.ServiceInjectionInfo[] getServiceInjections(java.lang.String name) Get the service injection fields.- Returns:
- The field or method infos.
 
 - 
getServiceInjectionNamespublic java.lang.String[] getServiceInjectionNames() Get the service injection names.- Returns:
- The names.
 
 - 
addFeatureInjectionpublic void addFeatureInjection(java.lang.String name, FieldInfo field)Add an injection field.- Parameters:
- name- The name.
- field- The field.
 
 - 
getFeatureInjectionspublic FieldInfo[] getFeatureInjections() Get the feature injection fields.- Returns:
- The fields.
 
 - 
addServiceCallpublic void addServiceCall(ServiceCallInfo call) Add an call field.- Parameters:
- name- The name.
- field- The field.
 
 - 
getServiceCallspublic java.util.List<ServiceCallInfo> getServiceCalls() Get the service call fields.- Returns:
- The field or method infos.
 
 - 
setServiceCallspublic void setServiceCalls(java.util.List<ServiceCallInfo> servicecalls) Set the service calls.
 - 
getPojoClasspublic ClassInfo getPojoClass() Get the pojo class.- Returns:
- The pojoclass.
 
 - 
setPojoClasspublic void setPojoClass(ClassInfo pojoclass) Set the pojo class.- Parameters:
- pojoclass- The pojoclass to set
 
 - 
getClassloaderpublic java.lang.ClassLoader getClassloader() Get the classloader.- Returns:
- the classloader.
 
 - 
setClassloaderpublic void setClassloader(java.lang.ClassLoader classloader) Set the classloader.- Parameters:
- classloader- The classloader to set.
 
 - 
setAgentMethodpublic void setAgentMethod(java.lang.Class<? extends java.lang.annotation.Annotation> ann, MethodInfo mi)Set an agent method.
 - 
getAgentMethodpublic MethodInfo getAgentMethod(java.lang.Class<? extends java.lang.annotation.Annotation> ann) Get an agent method.
 
- 
 
-