Examples of addJob()


Examples of jsprit.core.problem.VehicleRoutingProblem.Builder.addJob()

        double late = Math.max(0, arrivalTime - tourAct.getTheoreticalLatestOperationStartTime())*100;
        return  waiting + late;
      }
     
    });
    VehicleRoutingProblem vrp = vrpBuilder.addJob(service).addVehicle(vehicle).build();
   
   
    VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "src/test/resources/algorithmConfigWithDepartureTimeChoice.xml");
    Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();
   
View Full Code Here

Examples of jsprit.core.problem.VehicleRoutingProblem.Builder.addJob()

        double late = Math.max(0, arrivalTime - tourAct.getTheoreticalLatestOperationStartTime())*100;
        return  waiting + late;
      }
     
    });
    VehicleRoutingProblem vrp = vrpBuilder.addJob(service).addVehicle(vehicle).build();
   
   
    VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "src/test/resources/algorithmConfigWithDepartureTimeChoice.xml");
    Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();
   
View Full Code Here

Examples of jsprit.core.problem.VehicleRoutingProblem.Builder.addJob()

        double late = Math.max(0, arrivalTime - tourAct.getTheoreticalLatestOperationStartTime())*100;
        return  waiting + late;
      }
     
    });
    VehicleRoutingProblem vrp = vrpBuilder.addJob(service).addJob(service2).addVehicle(vehicle).build();
   
   
    VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "src/test/resources/algorithmConfigWithDepartureTimeChoice.xml");
    Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();
   
View Full Code Here

Examples of jsprit.core.problem.VehicleRoutingProblem.Builder.addJob()

        double late = Math.max(0, arrivalTime - tourAct.getTheoreticalLatestOperationStartTime())*100;
        return  waiting + late;
      }
     
    });
    VehicleRoutingProblem vrp = vrpBuilder.addJob(service).addJob(service2).addVehicle(vehicle).build();
   
   
    VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "src/test/resources/algorithmConfigWithDepartureTimeChoice.xml");
    Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();
   
View Full Code Here

Examples of org.activiti.engine.impl.asyncexecutor.AcquiredJobEntities.addJob()

      .getJobEntityManager()
      .findAsyncJobsDueToExecute(new Page(0, asyncExecutor.getMaxAsyncJobsDuePerAcquisition()));
   
    for (JobEntity job: jobs) {
      lockJob(commandContext, job, asyncExecutor.getAsyncJobLockTimeInMillis());
      acquiredJobs.addJob(job);
      asyncExecutor.executeAsyncJob(job);
    }
   
    return acquiredJobs;
  }
View Full Code Here

Examples of org.apache.crunch.impl.mr.exec.MRExecutor.addJob()

    // Finally, construct the jobs from the prototypes and return.
    DotfileWriter dotfileWriter = new DotfileWriter();
    MRExecutor exec = new MRExecutor(conf, jarClass, outputs, toMaterialize);
    for (JobPrototype proto : Sets.newHashSet(assignments.values())) {
      dotfileWriter.addJobPrototype(proto);
      exec.addJob(proto.getCrunchJob(jarClass, conf, pipeline, lastJobID));
    }

    String planDotFile = dotfileWriter.buildDotfile();
    exec.setPlanDotFile(planDotFile);
    conf.set(PlanningParameters.PIPELINE_PLAN_DOTFILE, planDotFile);
View Full Code Here

Examples of org.apache.hadoop.mapred.PoolManager.addJob()

        jobTracker);

    // Check that each good pool name is permitted
    for (String goodPoolName : goodPoolNames) {
      job.conf.set(PoolManager.EXPLICIT_POOL_PROPERTY, goodPoolName);
      mgr.addJob(job);
      assertEquals("PoolManager rejected good pool name",
          goodPoolName, mgr.getPoolName(job));
    }

    // Check that each bad pool name is rejected
View Full Code Here

Examples of org.apache.hadoop.mapred.jobcontrol.JobControl.addJob()

    throws IOException {
    JobControl theControl = new JobControl("ValueAggregatorJobs");
    ArrayList dependingJobs = new ArrayList();
    JobConf aJobConf = createValueAggregatorJob(args);
    Job aJob = new Job(aJobConf, dependingJobs);
    theControl.addJob(aJob);
    return theControl;
  }

  /**
   * Create an Abacus based map/reduce job.
View Full Code Here

Examples of org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.addJob()

      ControlledJob aboveAvgControlledJob = new ControlledJob(
          getAverageJobConf(binningOutputAbove, aboveAverageRepOutput));
      aboveAvgControlledJob.addDependingJob(binningControlledJob);

      JobControl jc = new JobControl("AverageReputation");
      jc.addJob(binningControlledJob);
      jc.addJob(belowAvgControlledJob);
      jc.addJob(aboveAvgControlledJob);

      jc.run();
      code = jc.getFailedJobList().size() == 0 ? 0 : 1;
View Full Code Here

Examples of org.apache.hadoop.raid.DistBlockIntegrityMonitor.Worker.LostFileInfo.addJob()

      List<LostFileInfo> fileInfos = new ArrayList<LostFileInfo>();

      for (String file: lostFiles) {
        LostFileInfo fileInfo = fileIndex.get(file);
        if (fileInfo != null) {
          fileInfo.addJob(jobName, priority);
        } else {
          fileInfo = new LostFileInfo(file, jobName, priority);
          fileIndex.put(file, fileInfo);
        }
        fileInfos.add(fileInfo);
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.