public IProcessor create(IModel model, IComputationTask computationTask,
Partition partition, ParameterBlock parameters, Context context) {
ISimulationRun simulation = (ISimulationRun) computationTask;
ParameterBlock ef = null;
// new ParameterBlock(
// simulation.getParameters()
// .getEventforwarding());
ExternalEventForwardingHandlerFactory f =
SimSystem.getRegistry().getFactory(
AbstractExternalEventForwardingHandlerFactory.class, ef);
ExternalEventForwardingHandler eefh = f.create(null, SimSystem.getRegistry().createContext());
SimSystem.report(Level.CONFIG, "Using " + eefh.getClass().getName()
+ " as external event forwarding mechanism.");
ParameterBlock eqfp = parameters.getSubBlock("eventqueue");
// (IEventQueue<IBasicDEVSModel>)
FlatSequentialProcessor p =
new FlatSequentialProcessor(model, SimSystem.getRegistry().getFactory(
AbstractEventQueueFactory.class, eqfp), eefh);