Examples of Walker


Examples of com.volantis.xml.jdom.Walker

            }
        };

        // Walk the DOM structure from root down, visiting all elements and
        // executing the associated constraints
        new Walker().visit(root, visitor);

        // Return the violation status
        return result[0];
    }
View Full Code Here

Examples of org.broadinstitute.gatk.engine.walkers.Walker

        walkerManager = new WalkerManager();
    }

    @Test
    public void testPresentWalker() {
        Walker countLociWalker = walkerManager.createByName("CountLoci");
        Assert.assertEquals(CountLoci.class,countLociWalker.getClass());
    }
View Full Code Here

Examples of org.broadinstitute.gatk.engine.walkers.Walker

    @Test
    public void testAddingVCFHeaderInfo() {
        final VCFHeader header = new VCFHeader();

        final Walker walker1 = new VCFHeaderTestWalker();
        final Walker walker2 = new VCFHeaderTest2Walker();

        final GenomeAnalysisEngine testEngine1 = new GenomeAnalysisEngine();
        testEngine1.setWalker(walker1);

        final GenomeAnalysisEngine testEngine2 = new GenomeAnalysisEngine();
View Full Code Here

Examples of org.broadinstitute.gatk.engine.walkers.Walker

        // No walker info?  No plugins.
        if (getAnalysisName() == null) return new Class[] {};

        Collection<Class> argumentSources = new ArrayList<Class>();

        Walker walker = engine.getWalkerByName(getAnalysisName());
        engine.setArguments(getArgumentCollection());
        engine.setWalker(walker);
        walker.setToolkit(engine);
        argumentSources.add(walker.getClass());

        Collection<ReadFilter> filters = engine.createFilters();
        for(ReadFilter filter: filters)
            argumentSources.add(filter.getClass());
View Full Code Here

Examples of org.broadinstitute.gatk.engine.walkers.Walker

    @DataProvider(name = "GATKReportCreationTest")
    public Object[][] makeGATKReportCreationTest() {
        List<Object[]> tests = new ArrayList<Object[]>();

        final Walker readWalker = new CountReads();
        final Walker lociWalker = new CountLoci();
        final Walker rodWalker = new CountRODs();
        final Walker artWalker = new RunReportDummyActiveRegionWalker();

        final Exception noException = null;
        final Exception javaException = new IllegalArgumentException("javaException");
        final Exception stingException = new ReviewedGATKException("GATKException");
        final Exception userException = new UserException("userException");
View Full Code Here

Examples of org.neo4j.walk.Walker

    File targetFile = File.createTempFile( "graphviz", ".png" );
    ProcessBuilder processBuilder = new ProcessBuilder( "dot", "-Tpng", "-o", targetFile.getAbsolutePath() );
    Process process = processBuilder.start();

    //Now output the dot file
    Walker walker = new Walker() {
      @Override
      public <R, E extends Throwable> R accept( Visitor<R, E> visitor ) throws E {
        for ( Node node : GlobalGraphOperations.at( graphDb ).getAllNodes() ) {
          visitor.visitNode( node );
          for ( Relationship edge : node.getRelationships( Direction.OUTGOING ) ) {
View Full Code Here

Examples of org.sonatype.nexus.proxy.walker.Walker

      throws Exception
  {
    final File repoLocation = this.addRepository("active-repo");

    final DefaultWastebasket wastebasket = (DefaultWastebasket) this.lookup(Wastebasket.class);
    final Walker walker = wastebasket.getWalker();
    wastebasket.setWalker(
        new Walker()
        {
          @Override
          public void walk(final WalkerContext context)
              throws WalkerException
          {
            context.getProcessors().add(0, new AbstractWalkerProcessor()
            {
              @Override
              public void processItem(final WalkerContext context, final StorageItem item)
                  throws Exception
              {
                // do noting
              }

              @Override
              public void onCollectionExit(final WalkerContext context, final StorageCollectionItem coll)
                  throws Exception
              {
                FileUtils.deleteDirectory(new File(repoLocation, coll.getPath()));
              }
            });
            walker.walk(context);
          }
        }
    );
    wastebasket.purgeAll(DefaultWastebasket.ALL);
  }
View Full Code Here

Examples of org.sonatype.nexus.proxy.walker.Walker

      {
        exitedCollections.add(coll.getPath());
      }

    });
    final Walker walker = lookup(Walker.class);

    // walk
    try {
      walker.walk(context);
      assertThat("Walk must fail as we planted a mine in there!", false);
    }
    catch (WalkerException e) {
      assertThat("Reason must state walk is \"aborted\"", e.getMessage().toLowerCase().contains("aborted"));
      assertThat("Reason must refer to our repo ID=" + REPO_ID,
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.