Examples of partition()


Examples of appeng.container.implementations.ContainerCellWorkbench.partition()

        {
          ccw.nextCopyMode();
        }
        else if ( Value.equals( "Partition" ) )
        {
          ccw.partition();
        }
        else if ( Value.equals( "Clear" ) )
        {
          ccw.clear();
        }
View Full Code Here

Examples of appeng.container.implementations.ContainerStorageBus.partition()

      ContainerStorageBus ccw = (ContainerStorageBus) c;
      if ( Name.equals( "StorageBus.Action" ) )
      {
        if ( Value.equals( "Partition" ) )
        {
          ccw.partition();
        }
        else if ( Value.equals( "Clear" ) )
        {
          ccw.clear();
        }
View Full Code Here

Examples of br.com.objectos.rio.GentooInstall.partition()

    if (options.download && !options.skipDownload) {
      install.dowload();
    }

    if (options.partition) {
      install.partition();
    }

    if (options.unpack) {
      install.unpack();
    }
View Full Code Here

Examples of br.com.objectos.rio.GentooInstall.partition()

    if (options.download && !options.skipDownload) {
      install.dowload();
    }

    if (options.partition) {
      install.partition();
    }

    if (options.unpack) {
      install.unpack();
    }
View Full Code Here

Examples of com.couchbase.client.core.message.kv.BinaryRequest.partition()

        if (request instanceof BinaryRequest) {
            if (request instanceof GetBucketConfigRequest) {
                return selectFirstConnected(endpoints);
            } else {
                BinaryRequest binaryRequest = (BinaryRequest) request;
                short partition = binaryRequest.partition();
                if (partition > 0) {
                    int id = partition % numEndpoints;
                    Endpoint endpoint = endpoints[id];
                    if (endpoint != null && endpoint.isState(LifecycleState.CONNECTED)) {
                        return endpoint;
View Full Code Here

Examples of edu.cmu.sphinx.decoder.search.Partitioner.partition()

    for (int i = 0; i < tokens.length; i++) {
      float logTotalScore = random.nextFloat();
      tokens[i] = new Token(parent, null, logTotalScore, 0.0f, 0.0f, i);
    }

    final int r = partitioner.partition(tokens, tokens.length,
        absoluteBeamWidth);

    if (tokenListLarger) {
      Assert.assertEquals(r, absoluteBeamWidth - 1);
    } else {
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.gui.GraphCanvas.partition()

     
      @Override
      public void actionPerformed(ActionEvent e) {
        GraphCanvas canvas = WorkflowMenu.this.engine.getGUI().getGraphCanvas();
        try {
          canvas.partition();
        } catch (XBayaException e1) {
          WorkflowMenu.this.engine.getErrorWindow().error(e1);
        }
      }
    });
View Full Code Here

Examples of eu.admire.gateway.location.Partitioner.partition()

                    GatewayBeanFactory.getInstance().getPartitioner();
                for (Graph graph : executionGraphs)
                {
                    LOG.debug("Partitioning graph");
                    Map<GatewayLocation, Graph> partitions =
                        partitioner.partition(graph);
                   
                    DistributedDISPELProcessor processor =
                        new DistributedDISPELProcessor();
                    processor.registerRemoteProcessListener(this);
                    LOG.debug("Initialising distributed processors.");
View Full Code Here

Examples of eu.admire.gateway.location.simple.SimplePartitioner.partition()

        c.addAnnotation(AnnotationKeys.GATEWAY, gw2);
        b.connectInput("in", 0, a.getOutput("out", 0));
        graph.add(a); graph.add(b); graph.add(c);
       
        SimplePartitioner partitioner = new SimplePartitioner();
        Map<GatewayLocation, Graph> partitions = partitioner.partition(graph);
        TestCase.assertEquals(2, partitions.size());
        Graph g = partitions.get(gw1);
        TestCase.assertTrue(g.getNodes().containsAll(Arrays.asList(a, b)));
        g = partitions.get(gw2);
        TestCase.assertTrue(g.getNodes().contains(c));
View Full Code Here

Examples of eu.admire.gateway.location.simple.SimplePartitioner.partition()

        b.connectInput("in", 0, a.getOutput("out", 0));
        c.connectInput("in", 0, b.getOutput("out", 0));
        graph.add(a); graph.add(b); graph.add(c);
       
        SimplePartitioner partitioner = new SimplePartitioner();
        Map<GatewayLocation, Graph> partitions = partitioner.partition(graph);
        TestCase.assertEquals(1, partitions.size());
        Graph g = partitions.get(gw);
        TestCase.assertEquals(3, g.getNodes().size());
        TestCase.assertTrue(g.getNodes().containsAll(Arrays.asList(a, b, c)));
    }
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.