Examples of addInstance()


Examples of jsprit.analysis.toolbox.ComputationalLaboratory.addInstance()

     */
    ComputationalLaboratory computationalLab = new ComputationalLaboratory();
    /*
     * add benchmarking instance
     */
    computationalLab.addInstance("SolomonR101", vrp);
    /*
     * add algorithms through factories
     *
     *
     * Define 2 algorithms
View Full Code Here

Examples of jsprit.analysis.toolbox.ComputationalLaboratory.addInstance()

     */
    ComputationalLaboratory computationalLab = new ComputationalLaboratory();
    /*
     * add benchmarking instance
     */
    computationalLab.addInstance("SolomonR101", vrp);
    /*
     * add algorithms through factories
     *
     *
     *
 
View Full Code Here

Examples of org.apache.clerezza.triaxrs.providers.CascadingProviders.addInstance()

  public void testGetMessageBodyReader() {
    CascadingProviders cascadingProviders = new CascadingProviders();
    MessageBodyReader<String> mbr1 = new MessageBodyReaderImpl("mbr1");
    MessageBodyReader<String> mbr2 = new MessageBodyReaderImpl("mbr2");
    MessageBodyReader<String> mbr3 = new MessageBodyReaderImpl("mbr3");
    cascadingProviders.addInstance(mbr1, "foo");
    cascadingProviders.addInstance(mbr2, "foo/bar");
    cascadingProviders.addInstance(mbr3, "");
    assertSame(mbr1, getMbr("foo/test", cascadingProviders));
    assertSame(mbr1, getMbr("foo/", cascadingProviders));
    assertSame(mbr3, getMbr("bar", cascadingProviders));
View Full Code Here

Examples of org.apache.ctakes.temporal.utils.SMOTEplus.addInstance()

                this.dataWriter.write(new Instance<String>(outcome, features));

              }else{//for minority instances:
                Instance<String> minorityInst = new Instance<String>(outcome, features);
                this.dataWriter.write(minorityInst);
                smote.addInstance(minorityInst);//add minority instances to SMOTE algorithm
              }
            }else {// if predicting, add prediction to outcomes
              outcomes.add(this.classifier.classify(features));
            }
      }
View Full Code Here

Examples of org.apache.helix.HelixAdmin.addInstance()

      String instance = "localhost_" + instances[i];
      InstanceConfig instanceConfig = new InstanceConfig(instance);
      instanceConfig.setHostName("localhost");
      instanceConfig.setPort("" + instances[i]);
      instanceConfig.setInstanceEnabled(true);
      admin.addInstance(clusterName, instanceConfig);
    }
  }

  protected void runPipeline(ClusterEvent event, Pipeline pipeline)
  {
View Full Code Here

Examples of org.apache.helix.HelixAdmin.addInstance()

    HelixAdmin admin = _gSetupTool.getClusterManagementTool();

    // Add 4 participants, each with differint tag characteristics
    InstanceConfig instance1 = new InstanceConfig("localhost_1");
    instance1.addTag(TAGS[0]);
    admin.addInstance(clusterName, instance1);
    InstanceConfig instance2 = new InstanceConfig("localhost_2");
    instance2.addTag(TAGS[1]);
    admin.addInstance(clusterName, instance2);
    InstanceConfig instance3 = new InstanceConfig("localhost_3");
    instance3.addTag(TAGS[0]);
View Full Code Here

Examples of org.apache.helix.HelixAdmin.addInstance()

    InstanceConfig instance1 = new InstanceConfig("localhost_1");
    instance1.addTag(TAGS[0]);
    admin.addInstance(clusterName, instance1);
    InstanceConfig instance2 = new InstanceConfig("localhost_2");
    instance2.addTag(TAGS[1]);
    admin.addInstance(clusterName, instance2);
    InstanceConfig instance3 = new InstanceConfig("localhost_3");
    instance3.addTag(TAGS[0]);
    instance3.addTag(TAGS[1]);
    admin.addInstance(clusterName, instance3);
    InstanceConfig instance4 = new InstanceConfig("localhost_4");
View Full Code Here

Examples of org.apache.helix.HelixAdmin.addInstance()

    instance2.addTag(TAGS[1]);
    admin.addInstance(clusterName, instance2);
    InstanceConfig instance3 = new InstanceConfig("localhost_3");
    instance3.addTag(TAGS[0]);
    instance3.addTag(TAGS[1]);
    admin.addInstance(clusterName, instance3);
    InstanceConfig instance4 = new InstanceConfig("localhost_4");
    admin.addInstance(clusterName, instance4);

    // Now make a REST call for all resources
    Reference resourceRef = new Reference(URL_BASE);
View Full Code Here

Examples of org.apache.helix.HelixAdmin.addInstance()

    InstanceConfig instance3 = new InstanceConfig("localhost_3");
    instance3.addTag(TAGS[0]);
    instance3.addTag(TAGS[1]);
    admin.addInstance(clusterName, instance3);
    InstanceConfig instance4 = new InstanceConfig("localhost_4");
    admin.addInstance(clusterName, instance4);

    // Now make a REST call for all resources
    Reference resourceRef = new Reference(URL_BASE);
    Request request = new Request(Method.GET, resourceRef);
    Response response = _gClient.handle(request);
View Full Code Here

Examples of org.apache.helix.HelixAdmin.addInstance()

      int port = 12918 + i;
      InstanceConfig instanceConfig = new InstanceConfig("localhost_" + port);
      instanceConfig.setHostName("localhost");
      instanceConfig.setPort("" + port);
      instanceConfig.setInstanceEnabled(true);
      admin.addInstance(clusterName, instanceConfig);
      // System.out.println("\t Added participant: " + instanceConfig.getInstanceName());
    }

    // construct ideal-state manually
    IdealState idealState = new IdealState(db);
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.