Examples of Job


Examples of jmt.engine.QueueNet.Job

        break;
    }

    Job[] jobs = new Job[10];

    jobs[0] = new Job(class1);
    jobs[1] = new Job(class3);
    jobs[2] = new Job(class2);
    jobs[3] = new Job(class2);
    jobs[4] = new Job(class1);
    jobs[5] = new Job(class1);
    jobs[6] = new Job(class1);
    jobs[7] = new Job(class2);
    jobs[8] = new Job(class3);
    jobs[9] = new Job(class3);

    byte b = 0x01;

    for (Job job : jobs) {
      try {
View Full Code Here

Examples of jmt.jmarkov.Job

        // lambda is zero
        sim.setLambdaZero(true);
        return;
      }
      jobIdCounter++;
      Job job = new Job(jobIdCounter, currentTime);
      job.setEnteringQueueTime(interarrivalTime + currentTime);
      sim.enqueueJob(job);
    }
  }
View Full Code Here

Examples of jsprit.core.problem.job.Job

  }

  private void ruin(Collection<VehicleRoute> vehicleRoutes, int nOfJobs2BeRemoved, List<Job> unassignedJobs) {
    LinkedList<Job> availableJobs = new LinkedList<Job>(vrp.getJobs().values());
    for (int i = 0; i < nOfJobs2BeRemoved; i++) {
      Job job = pickRandomJob(availableJobs);
      unassignedJobs.add(job);
      availableJobs.remove(job);
      for (VehicleRoute route : vehicleRoutes) {
        boolean removed = route.getTourActivities().removeJob(job);
        if (removed) {
View Full Code Here

Examples of kr.or.ioi2002.RMIServer.Job

     * job to null.
     *
     * @return the just finished job
     */
    private Job resetCurrentJob() {
        Job finishedJob = currentJob;
        currentJob = null;
        return finishedJob;
    }
View Full Code Here

Examples of net.greghaines.jesque.Job

public class TestReflectiveJobFactory {

    @Test
    public void testMaterializeJob() throws Exception {
        final ReflectiveJobFactory jobFactory = new ReflectiveJobFactory();
        final Object action = jobFactory.materializeJob(new Job(TestRunnableJob.class.getName()));
        Assert.assertNotNull(action);
        Assert.assertEquals(TestRunnableJob.class, action.getClass());
        final Object action2 = jobFactory.materializeJob(new Job(TestCallableJob.class.getName()));
        Assert.assertNotNull(action2);
        Assert.assertEquals(TestCallableJob.class, action2.getClass());
    }
View Full Code Here

Examples of nl.topicus.onderwijs.dashboard.datatypes.hudson.Job

      }
    }
    List<Job> jobs = service.getJobs(project);
    if (jobs.isEmpty())
      return null;
    Job jobWithHighestNextBuildNumber = Collections.max(jobs,
        new BuildNumberComparator());
    return jobWithHighestNextBuildNumber.getNextBuildNumber() - 1;
  }
View Full Code Here

Examples of org.activiti.engine.runtime.Job

    Task task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();
    assertEquals("First line support", task.getName());

    // Manually execute the job
    ManagementService managementService = activitiRule.getManagementService();
    Job timer = managementService.createJobQuery().singleResult();
    managementService.executeJob(timer.getId());

    // The timer has fired, and the second task (secondlinesupport) now exists
    task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();
    assertEquals("Handle escalated issue", task.getName());
  }
View Full Code Here

Examples of org.adfemg.datacontrol.demo.persist.Job

    }

    private List<Job> jobs(List<Map<String, String>> values) {
        List<Job> retval = new ArrayList<Job>(values.size());
        for (Map<String,String> val : values) {
            Job job = new Job();
            job.setId(val.get("JOB_ID"));
            job.setTitle(val.get("JOB_TITLE"));
            job.setMinSalary(Double.parseDouble(val.get("MIN_SALARY")));
            job.setMaxSalary(Double.parseDouble(val.get("MAX_SALARY")));
            retval.add(job);
        }
        return retval;
    }
View Full Code Here

Examples of org.apache.activemq.broker.scheduler.Job

            addItem("repeat", "number of times to repeat", SimpleType.INTEGER);
        }

        @Override
        public Map<String, Object> getFields(Object o) throws OpenDataException {
            Job job = (Job) o;
            Map<String, Object> rc = super.getFields(o);
            rc.put("jobId", job.getJobId());
            rc.put("cronEntry", "" + job.getCronEntry());
            rc.put("start", job.getStartTime());
            rc.put("delay", job.getDelay());
            rc.put("next", job.getNextExecutionTime());
            rc.put("period", job.getPeriod());
            rc.put("repeat", job.getRepeat());
            return rc;
        }
View Full Code Here

Examples of org.apache.felix.ipojo.runtime.core.services.Job

            props.put("call", callable.call());
        } catch (Exception e) {
            // Ignore.
        }

        Job anonymous = new Job()  {
            public Map doSomething() {
                Map map = new HashMap();
                map.put("publicObject", publicObject);
                map.put("publicInt", new Integer(publicInt));
                map.put("packageObject", packageObject);
                map.put("packageInt", new Integer(packageInt));
                map.put("protectedObject", protectedObject);
                map.put("protectedInt", new Integer(protectedInt));
                map.put("privateObject", privateObject);
                map.put("privateInt", new Integer(privateInt));
                map.put("nonObject", nonObject);
                map.put("nonInt", new Integer(nonInt));
                return map;
            }
        };
       
        props.put("anonymous", anonymous.doSomething());
        props.put("public", new PublicNested());
       
       
        return props;
    }
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.