Package org.jamesii.model.carules.grid.plugintype

Examples of org.jamesii.model.carules.grid.plugintype.BaseGridFactory


      } else {

        gridParameters.addSubBl(AbstractGridFactory.DIMENSION,
            info.getDimensions());

        BaseGridFactory gridFactory =
            SimSystem.getRegistry().getFactory(AbstractGridFactory.class,
                gridParameters);

        model =
            new CARulesModel(f.getName(), info.getDimensions(),
View Full Code Here


  public static ICARulesGrid createGrid(int dimension, int[] size,
          int defaultState, int numberOfStates) {
    ParameterBlock block = new ParameterBlock();
    block.addSubBlock(AbstractGridFactory.DIMENSION, dimension);

    BaseGridFactory factory
            = SimSystem.getRegistry().getFactory(AbstractGridFactory.class, block);

    if (factory == null) {
      return null;
    }

    block = new ParameterBlock();
    block.addSubBlock(BaseGridFactory.SIZE, size);
    block.addSubBlock(BaseGridFactory.DEFAULTSTATE, defaultState);
    block.addSubBlock(BaseGridFactory.NUMBER_OF_STATES, numberOfStates);

    return factory.create(block, SimSystem.getRegistry().createContext());
  }
View Full Code Here

TOP

Related Classes of org.jamesii.model.carules.grid.plugintype.BaseGridFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.