Examples of Grid


Examples of org.drools.grid.Grid

        grid1 = new GridImpl( new HashMap<String, Object>() );
        configureGrid1( grid1,
                        8000,
                        null );

        Grid grid2 = new GridImpl( new HashMap<String, Object>() );
        configureGrid1( grid2,
                        -1,
                        grid1.get( WhitePages.class ) );

        GridNode n1 = grid1.createGridNode( "n1" );
        grid1.get( SocketService.class ).addService( "n1", 8000, n1 );
              
        GridServiceDescription<GridNode> n1Gsd = grid2.get( WhitePages.class ).lookup( "n1" );
        GridConnection<GridNode> conn = grid2.get( ConnectionFactoryService.class ).createConnection( n1Gsd );
        remoteN1 = conn.connect();
   
    }
View Full Code Here

Examples of org.drools.grid.Grid

        grid1 = new GridImpl(new HashMap<String, Object>());
        configureGrid1(grid1,
                8000,
                null);

        Grid grid2 = new GridImpl(new HashMap<String, Object>());
        configureGrid1(grid2,
                -1,
                grid1.get(WhitePages.class));

        GridNode n1 = grid1.createGridNode("n1");
        grid1.get(SocketService.class).addService("n1", 8000, n1);

        GridServiceDescription<GridNode> n1Gsd = grid2.get(WhitePages.class).lookup("n1");
        GridConnection<GridNode> conn = grid2.get(ConnectionFactoryService.class).createConnection(n1Gsd);
        remoteN1 = conn.connect();

    }
View Full Code Here

Examples of org.drools.grid.Grid

    @Test
    public void testGrid() throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( "org/drools/container/spring/grid.xml" );

        Grid grid1 = (Grid) context.getBean( "grid1" );
        assertTrue( grid1.get( WhitePages.class ) instanceof JpaWhitePages );

        Grid grid2 = (Grid) context.getBean( "grid2" );
        assertTrue( grid2.get( WhitePages.class ) instanceof WhitePagesClient );

        Grid grid3 = (Grid) context.getBean( "grid3" );
        assertTrue( grid3.get( WhitePages.class ) instanceof WhitePagesImpl );

        GridServiceDescription<GridNode> n1Gsd = grid2.get( WhitePages.class ).lookup( "node1" );
        GridConnection<GridNode> conn = grid2.get( ConnectionFactoryService.class ).createConnection( n1Gsd );
        GridNode remoteN1 = conn.connect();
View Full Code Here

Examples of org.geowebcache.grid.Grid

        final GridSubset gridSubset = this.getGridSubset(gridSetId);

        GridSet gridSet = gridSubset.getGridSet();
        final int z = (int) tileIndex[2];

        Grid grid = gridSet.getGrids()[z];

        // long[] coverage = gridSubset.getCoverage(z);
        // long coverageMinY = coverage[1];
        long coverageMaxY = grid.getExtent()[1] - 1;

        final long x = tileIndex[0];
        // invert the order of the requested Y ordinate, since ArcGIS caches are top-left to
        // bottom-right, and GWC computes tiles in bottom-left to top-right order
        final long y = (coverageMaxY - tileIndex[1]);
View Full Code Here

Examples of org.gridgain.grid.Grid

        X.println("Delay: " + delay);

        if (minFileSize > maxFileSize)
            throw new IllegalArgumentException();

        Grid grid = null;

        if (startNode) {
            X.println("Starting node using configuration: " + nodeCfg);

            grid = G.start(U.resolveGridGainUrl(nodeCfg));
View Full Code Here

Examples of org.jitterbit.ui.layout.Grid

        installShortcuts(overlay);
        return overlay;
    }

    private JComponent createOverlayButtons(OverlayDecorator overlay, Action okAction) {
        Grid buttons = Grid.oneRow(10);
        buttons.addAll(okAction, overlay.getCancelAction());
        BoxBuilder row = BoxBuilder.horizontal();
        row.glue().add(buttons);
        return row.container();
    }
View Full Code Here

Examples of org.mvel2.tests.core.res.Grid

    Serializable s = compileExpression("import org.mvel2.tests.core.res.*;"
        + "cols = new Column[] { new Column('name', 20), new Column('age', 2) };"
        + "grid = new Grid(new Model(cols));",
        ctx);

    Grid g = (Grid) executeExpression(s,
        new HashMap());

    assertEquals(g.getModel().getColumns()[0].getName(),
        "name");
    assertEquals(g.getModel().getColumns()[0].getLength(),
        20);
    assertEquals(g.getModel().getColumns()[1].getName(),
        "age");
    assertEquals(g.getModel().getColumns()[1].getLength(),
        2);
  }
View Full Code Here

Examples of org.openpixi.pixi.physics.grid.Grid

    sharedDataManager =  createSharedDataManager();
    ParticleBoundaries particleBoundaries = createParticleBoundaries(sharedDataManager);
    sharedDataManager.setParticleBoundaries(particleBoundaries);

    Grid grid = createGrid(sharedDataManager);
    Interpolation interpolation = createInterpolationIterator(sharedDataManager);
    sharedDataManager.setGrid(grid);

    sharedDataManager.initializeCommunication();
View Full Code Here

Examples of org.rascalmpl.library.vis.figure.compose.Grid

    case GRID:
      Figure[][] elems = make2DList(env, c.get(0), properties, childPropsNext);
      if(elems.length == 0){
        return new Space(null, properties );
      }
      return new Grid( elems, properties);
     
           
    case OUTLINE:
      return new Outline( properties, (IList)c.get(0), ((IInteger) c.get(1)).intValue());
   
View Full Code Here

Examples of org.spout.api.inventory.shape.Grid

  public CraftingInventory(Grid grid, int outputSlot) {
    this(grid, outputSlot, 0);
  }

  public CraftingInventory(int length, int width, int outputSlot, int offset) {
    this(new Grid(length, width), outputSlot, offset);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.