Package net.sf.apptools.task

Examples of net.sf.apptools.task.Task


        platform.handleError(e.toString(),e);
        ins[i] = null;
      }
    }

    final Task targetIOtask =  new TargetIOTask(project,platform,ins,tif);
    platform.runTask(targetIOtask);
  }
View Full Code Here


  /**Analyze all the probes in the current project with the current project's
   * settings*/
  protected void analyzeProbes() {
    //Create a new task and set up the task runner
    final Task analysisTask = getProbeAnalysisTask(platform);

    platform.runTask(analysisTask);

    //Call to update the table
    fireProjectChange(PROJECT_RUN_END);
View Full Code Here

      return;
    }

    //Setup task, runner, and monitor
    final ErrorHandler ecb = new ProjectInputErrorCallback(platform);
    final Task IOtask = getLoadProjectTask(in, ecb);

    platform.runTask(IOtask);
    projectFile = pFile;
  }
View Full Code Here

      return;
    }

    //Setup task, runner, and monitor
    final ErrorHandler ecb = new ProjectInputErrorCallback(platform);
    final Task IOtask = getImportProjectTask(in, ecb);

    platform.runTask(IOtask);
    projectFile = pFile;
  }
View Full Code Here

  }

  protected void saveProject(final Writer out) {

    final ErrorHandler ecb = new ProjectInputErrorCallback(platform);
    final Task IOtask = getExportProjectTask(out, ecb);

    platform.runTask(IOtask);
  }
View Full Code Here

  }
   
  public void testProjectIO() throws IOException, SequenceFormatException, DuplicateIDException {
    File f1 = new File("IOTest.prx"); //$NON-NLS-1$
    File f2 = new File("IOTest2.prx"); //$NON-NLS-1$
    Task t = pm.getProbeDesignTask(false,true, null, new DefaultNamingScheme(), new GoodFairAcceptor(),new BestQualitySelector(),new DefaultProbeDesigner(new GreedyTagAllocator()),new DefaultTSSPairDesigner(new DefaultTSSConstructor()),new StreamErrorHandler(System.err,true));
    t.run();   
   
    TagAllocationTable tat1 = pm.getProject().getTagAllocationTable();
   
    new ProjectXMLIOTask(pm,null,new FileWriter(f1)).run();
    new ProjectXMLIOTask(pm,null,new FileReader(f1)).run();   
    new ProjectXMLIOTask(pm,null,new FileWriter(f2)).run();
    new ProjectXMLIOTask(pm,null,new FileReader(f2)).run();   
    assertEquals(f1.length(),f2.length());
    TagAllocationTable tat2 = pm.getProject().getTagAllocationTable();
   
    assertTrue(tat1.equals(tat2));
   
    t = pm.getProbeDesignTask(false,true, null, new DefaultNamingScheme(), new GoodFairAcceptor(),new BestQualitySelector(),new DefaultProbeDesigner(new GreedyTagAllocator()),new DefaultTSSPairDesigner(new DefaultTSSConstructor()),null);
    t.run();   

    new ProjectXMLIOTask(pm,null,new FileWriter(f2)).run();
    new ProjectXMLIOTask(pm,null,new FileReader(f2)).run();   
   
    StringReader sr = new StringReader(">PROBE_1 Probe 1\nATCGACGAGCGAC|ACTAGCGAGCGAC|ATCGACGACGGAC|ACTACGAGCGAC\n" + //$NON-NLS-1$
View Full Code Here

    proj.getSettings().addCandidateModuleStage1(dummy);

    pm.setProject(proj);

    //Make a new design after clearing tag usage   
    Task task = pm.getProbeDesignTask(false, true, true, new GoodAcceptor(), new NoSelector(), new DefaultProbeDesigner(new GreedyTagAllocator()), new DefaultTSSConstructor(), new StreamErrorHandler(System.out,true));
    task.run();
    Probe p = proj.getProbes().getSequenceAt(0);
    assertTrue("Tag allocated despite warning message",p.getTags().size() == 0); //$NON-NLS-1$

    proj.getSettings().getCandidateModulesStage1().clear();
  }
View Full Code Here

        platform.handleError(e.toString(),e);
        ins[i] = null;
      }
    }

    final Task targetIOtask =  new TargetIOTask(project,platform,ins,tif);
    platform.runTask(targetIOtask);
  }
View Full Code Here

  /**Analyze all the probes in the current project with the current project's
   * settings*/
  protected void analyzeProbes() {
    //Create a new task and set up the task runner
    final Task analysisTask = getProbeAnalysisTask(platform);

    platform.runTask(analysisTask);

    //Call to update the table
    fireProjectChange(PROJECT_RUN_END);
View Full Code Here

      return;
    }

    //Setup task, runner, and monitor
    final ErrorHandler ecb = new ProjectInputErrorCallback(platform);
    final Task IOtask = getLoadProjectTask(in, ecb);

    platform.runTask(IOtask);
    projectFile = pFile;
  }
View Full Code Here

TOP

Related Classes of net.sf.apptools.task.Task

Copyright © 2018 www.massapicom. 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.