
package org.gemoc.sample.tfsm.xdsml.api.impl;

import java.lang.reflect.Method;
import java.util.List;

import org.gemoc.execution.engine.trace.gemoc_execution_trace.MSEOccurrence;
import org.gemoc.gemoc_language_workbench.api.dsa.CodeExecutionException;
import org.gemoc.gemoc_language_workbench.api.dsa.ICodeExecutor;

public class TfsmCodeExecutor implements ICodeExecutor  {

	@Override
	public Object execute(Object className, String methodName, List<Object> parameters) throws CodeExecutionException {
		Class c;
		try {
			c = Class.forName((String)className);
			Method method = c.getMethod(methodName, parameters.get(0).getClass().getInterfaces()[0]);
			Object o = c.newInstance();
			method.invoke(o, parameters.get(0));
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	@Override
	public Object execute(MSEOccurrence mseOccurrence)
			throws CodeExecutionException 
	{
		return null;
	}

}
@@ -918,9 +918,95 @@
 ll;%0A%09%7D%0A%0A
+%09@Override%0A%09public String getExcutorID() %0A%09%7B%0A%09%09return getClass().getSimpleName();%0A%09%7D%0A%0A
 %7D

Update due to API change