// set cells from parameters
cellList = grid.getCellList();
}
CARulesModel model = null;
if (gridParameters == null) {
model =
new CARulesModel(f.getName(), info.getDimensions(),
info.getRules(), info.getStates(), info.getNeighborhood(),
cellList, standardSize, false);
} else {
gridParameters.addSubBl(AbstractGridFactory.DIMENSION,
info.getDimensions());
BaseGridFactory gridFactory =
SimSystem.getRegistry().getFactory(AbstractGridFactory.class,
gridParameters);
model =
new CARulesModel(f.getName(), info.getDimensions(),
info.getRules(), info.getStates(), info.getNeighborhood(),
cellList, standardSize, false, gridFactory);
}
return model;