Examples of Task


Examples of com.pointcliki.dizgruntled.grunt.Task

      animate("IDLE1", "IDLE");
      state(GruntState.IDLE);
      return;
    }
   
    Task t = null;
   
    if (fTool.equals("GAUNTLETZ")) t = new RockBreakTask(this, xy);
    else if (fTool.equals("SHOVEL")) t = new HoleDigTask(this, xy);
    else if (fTool.equals("GOOBER")) t = new GooSuckTask(this, xy);
   
    if (t != null) {
      boolean okay = t.start();
      if (okay) {
        fTask = t;
        t.next();
        state(GruntState.ACTING);
        animate("ITEM", "ITEM", xy.subtract(fTile));
       
      } else {
        if (fTask != null) fTask.cancel();
View Full Code Here

Examples of com.projectlibre.pm.tasks.Task

    MpxTaskConverter converter=new MpxTaskConverter();
    if (mpxTask.getNull() || mpxTask.getID()==null)
      return; //TODO insert blank lines
//    if (mpxTask.getSubProject() != null)
//      return;
    Task task=null;
    if (mpxTask.getOutlineNumber()!=null &&
        mpxTask.getOutlineLevel() == 0){ //root task, not a real task
      if (mpxRootTask==null)
        mpxRootTask=mpxTask;
    } else { // normal task
      task=new Task();
      converter.from(mpxTask, task, state);
      long taskStart=((Date)task.get("start")).getTime();
      if (earliestTaskStart==-1L || taskStart<earliestTaskStart)
        earliestTaskStart=taskStart;

      project.addTask(task,parentTask);     
     
View Full Code Here

Examples of com.projity.pm.task.Task

      return;
    }
    final Node node=(Node)nodes.get(0);
    Object impl=node.getImpl();
    if (impl instanceof Task||(impl instanceof Assignment&&taskType)){
      Task task=(Task)((impl instanceof Assignment)?(((Assignment)impl).getTask()):impl);
      if (taskInformationDialog == null) {
        taskInformationDialog = TaskInformationDialog.getInstance(getFrame(),task, notes);
        taskInformationDialog.pack();
        taskInformationDialog.setModal(false);
      } else {
View Full Code Here

Examples of com.sample.entity.Task

  }
 
  @ModelAttribute("preloadTask")
  public Task preload(@RequestParam(value = "id", required = false) Long id) {
    if (id != null) {
      Task task = taskService.get(id);
      return task;
    }
    return null;
  }
View Full Code Here

Examples of com.skymobi.monitor.model.Task

    @Before
    public void setUp() throws Exception {

        project=new Project();
        task=new Task();
        task.setScript(SCRIPT);

    }
View Full Code Here

Examples of com.sos.scheduler.model.answers.Task

   */
  public Task getTask() {

    @SuppressWarnings("unused")
    final String conMethodName = conClassName + "::getTask";
    Task objTask = null;
    Ok objOK = this.getAnswer().getOk();

    if (objOK != null)
      objTask = objOK.getTask();

View Full Code Here

Examples of com.spotify.helios.common.descriptors.Task

    for (final int port : staticPorts) {
      final String path = Paths.configHostPort(host, port);
      portNodes.put(path, idJson);
    }

    final Task task = new Task(job, deployment.getGoal(), deployment.getDeployerUser());
    final List<ZooKeeperOperation> operations = Lists.newArrayList(
        check(jobPath),
        create(portNodes),
        create(Paths.configJobHost(id, host)));
View Full Code Here

Examples of com.sun.enterprise.web.connector.grizzly.Task

        }
       
        while (doTask) {
            try{
                // Wait for a Task to be added to the pipeline.
                Task t = pipeline.getTask();
                if (t != null){
                    t.run();               
                    t = null;
                }
            } catch (Throwable t) {        
                // Make sure we aren't leaving any bytes after an exception.
                if (byteBuffer != null){
View Full Code Here

Examples of com.sun.jini.thread.TaskManager.Task

    public void run() throws Exception {
        TaskManager manager = new TaskManager();
        long badTaskTime = System.currentTimeMillis() + (10*1000);
        long goodTaskTime = badTaskTime + (10*1000);
        ArrayList taskList = new ArrayList();
        taskList.add(0, new Task() {
            public boolean runAfter(List tasks, int size){
                return false;

            }
            public void run() {
                throw new RuntimeException("Expected Exception");
            }
        });
        final boolean result[] = new boolean[]{false};
        taskList.add(1, new Task() {
            public boolean runAfter(List tasks, int size){
                return (tasks.size()>1);
            }
            public void run() {
                result[0] = true;
View Full Code Here

Examples of com.sun.jsft.tasks.Task

  /**
   *  <p>  The event passed in will be a {@link TaskEvent}.</p>
   */
  public void processEvent(SystemEvent event) throws AbortProcessingException {
System.out.println("DeferredFragmentTaskListener.processEvent()!");
      Task task = (Task) event.getSource();
      String eventType = ((TaskEvent) event).getType();
      int count = 0;
      synchronized (df) {
    // Synch to ensure we don't change it during this time.
    count = df.getTaskCount() - 1;
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.