Package org.jamesii.model.cacore.neighborhood

Examples of org.jamesii.model.cacore.neighborhood.INeighborhood


        builder.append("neighborhood moore;\n");
      } else if (info.getNeighborhood() instanceof NeumannNeighborhood) {
        builder.append("neighborhood neumann;\n");
      } else {
        builder.append("neighborhood free {\n");
        INeighborhood n = info.getNeighborhood();
        for (int i = 0; i < n.getCellCount(); i++) {
          int[] cell = n.getCell(i);
          builder.append("                   [");
          for (int d = 0; d < n.getDimensions(); d++) {
            if (d > 0) {
              builder.append(", ");
            }
            builder.append(cell[d]);
          }
View Full Code Here


    int r = 0;

    CaruleParser.dimension_return d = null;

    INeighborhood n = null;

    states = new ArrayList<>();
    rules = new ArrayList<>();
    problemTokens = new ArrayList<>();
    retval.states = states;
View Full Code Here

  // C:/Documents and Settings/stefan/Desktop/James II Dev/James II
  // Trunk/plugins/ca_rules_f_antlr/src/model/carules/reader/antlr/parser/Carule.g:213:7:
  // neighborhood returns [INeighborhood neighborhood] : NEIGHBORHOOD ( COLON )?
  // ( MOORE | NEUMANN | ( FREE )? f= freeneighborhood[comment] ) SEMICOLON ;
  public final INeighborhood neighborhood() throws RecognitionException {
    INeighborhood neighborhood = null;

    Token NEIGHBORHOOD2 = null;
    Token MOORE3 = null;
    FreeNeighborhood f = null;
View Full Code Here

TOP

Related Classes of org.jamesii.model.cacore.neighborhood.INeighborhood

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.