jadex.bdi.model.JavassistBDIClassGenerator Maven / Gradle / Ivy
The newest version!
package jadex.bdi.model;
/**
*
*/
public class JavassistBDIClassGenerator //implements IBDIClassGenerator
{
}
//{
// /**
// * Generate class.
// */
// public Class> generateBDIClass(Class> cma, final BDIModel micromodel, ClassLoader cl)
// {
// Class> ret = null;
//
// try
// {
// String clname = cma.getName()+BDIModelLoader.FILE_EXTENSION_BDIV3_FIRST;
// // todo: cannot use default pool as model is loaded 2 times with different classloaders ?
//// ClassPool pool = ClassPool.getDefault();
// ClassPool pool = new ClassPool(null);
// pool.insertClassPath(new ClassClassPath(cma));
//// pool.appendSystemPath();
// CtClass clazz = pool.getAndRename(cma.getName(), clname);
// clazz.setSuperclass(pool.getCtClass(cma.getName()));
// clazz.addField(new CtField(getCtClass(BDIAgent.class, pool), "__agent", clazz));
//
// CtMethod[] methods = clazz.getDeclaredMethods();
// Field[] agents = micromodel.getAgentInjections();
//
// // rewrite methods in which beliefs are written
// for(int i=0; i