Examples of addAll()


Examples of edu.stanford.nlp.trees.Treebank.addAll()

  public void setUp() {
    Options op = new Options();
    Treebank treebank = op.tlpParams.memoryTreebank();
   
    treebank.addAll(Arrays.asList(correctTrees));
    binarizedTrees = ShiftReduceParser.binarizeTreebank(treebank, op);
  }
 
  public List<Transition> buildTransitionList(Transition ... transitions) {
    return Generics.newLinkedList(Arrays.asList(transitions));
View Full Code Here

Examples of edu.ucla.sspace.util.primitive.TroveIntSet.addAll()

    /**
     * {@inheritDoc}
     */
    public IntSet connected() {
        TroveIntSet t = new TroveIntSet();
        t.addAll(inEdges.keySet());
        t.addAll(outEdges.keySet());
        return t;
    }

    /**
 
View Full Code Here

Examples of etherstrategy.simulation.TestUElementComposite.addAll()

        testCollection.clear();
        testCollection.add( new TestA() );
        testCollection.add( new TestA() );
       
        testElement2.addAll( testCollection );

        assertFalse(
                "Two UniverseElementComposites should not be similar if they were populated with collections of UniverseElements that were, themselves, not similar.",
                testElement.similar( testElement2 ) );
       
View Full Code Here

Examples of eu.admire.dispel.graph.Graph.addAll()

                RequestNode node = connection.getSource();
                nodes.addAll(GraphUtilities.getConnectedComponent(node).getNodes());
            }
        }
        Graph graph = new Graph();
        graph.addAll(nodes);
        return graph;
    }
   
}
View Full Code Here

Examples of eu.admire.dispel.graph.LiteralValuesNode.addAll()

        case SEQUENCE:
        {
            SequenceStrategy sequence = (SequenceStrategy)strategy;
            LiteralValuesNode node = new LiteralValuesNode();
            node.setOutputDescriptor(sequence.getSType(), sequence.getDType());
            node.addAll(sequence.getExpressions());
            mConnection = node.getOutput();
            break;
        }
        case OUTPUT:
        {
View Full Code Here

Examples of eu.stratosphere.api.common.operators.util.FieldSet.addAll()

   * @param destinationFields the position in the destination record(s)
   */
  public void addForwardedField(int sourceField, FieldSet destinationFields) {
    FieldSet fs;
    if((fs = this.forwardedFields.get(sourceField)) != null) {
      fs.addAll(destinationFields);
    } else {
      fs = new FieldSet(destinationFields);
      this.forwardedFields.put(sourceField, fs);
    }
  }
View Full Code Here

Examples of fork.lib.bio.anno.genomic.LandscapeBuilder.addAll()

    BedGraphExporter.writeTitle(bw, tit);
    String[] chrs= lb.getUnsortedChromosomeList();
    for( int i=0; i<chrs.length ; i++ ){
        String chr= chrs[i];
        LandscapeBuilder lbt= new LandscapeBuilder();
        lbt.addAll(chr, lb.getLandscape2DForChromosome(chr));
        new LandscapeTransformer(lbt).unlog(Math.E);
        BedGraphExporter be= new BedGraphExporter(lbt);
        be.appendToFile(bw);
    }
    bw.close();
View Full Code Here

Examples of fork.lib.bio.anno.genomic.region.GenomicRegionsBuilder.addAll()

                }else{
                    gbout.add((GenomicRegion)r);
                }
            }
        }else{
            gbout.addAll(chr, rs);
        }
    }
    gbout.writeToFileBed(out);
}
   
View Full Code Here

Examples of gnu.trove.THashSet.addAll()

  private static Collection varsForFactors (List factors)
  {
    Set vars = new THashSet ();
    for (Iterator it = factors.iterator (); it.hasNext ();) {
      Factor ptl = (Factor) it.next ();
      vars.addAll (ptl.varSet ());
    }
    return vars;
  }

}
View Full Code Here

Examples of gnu.trove.TIntCollection.addAll()

        }

        try {
            Set<Integer> test = new HashSet<Integer>();
            test.add( Integer.valueOf( 1138 ) );
            collection.addAll( test );
            fail( "Expected UnsupportedOperationException" );
        }
        catch ( UnsupportedOperationException ex ) {
            // Expected
        }
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.