fixed some documentation and attached a correct license
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@953 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
bf6190b471
commit
a62bc6b05d
|
|
@ -20,23 +20,31 @@ import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
|
* Copyright (c) 2009 The Broad Institute
|
||||||
*
|
*
|
||||||
* User: aaron
|
* Permission is hereby granted, free of charge, to any person
|
||||||
* Date: Apr 24, 2009
|
* obtaining a copy of this software and associated documentation
|
||||||
* Time: 10:35:22 AM
|
* files (the "Software"), to deal in the Software without
|
||||||
|
* restriction, including without limitation the rights to use,
|
||||||
|
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following
|
||||||
|
* conditions:
|
||||||
*
|
*
|
||||||
* The Broad Institute
|
* The above copyright notice and this permission notice shall be
|
||||||
* SOFTWARE COPYRIGHT NOTICE AGREEMENT
|
* included in all copies or substantial portions of the Software.
|
||||||
* This software and its documentation are copyright 2009 by the
|
|
||||||
* Broad Institute/Massachusetts Institute of Technology. All rights are reserved.
|
|
||||||
*
|
|
||||||
* This software is supplied without any warranty or guaranteed support whatsoever. Neither
|
|
||||||
* the Broad Institute nor MIT can be responsible for its use, misuse, or functionality.
|
|
||||||
*
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
* OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author aaron
|
* @author aaron
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
|
|
@ -68,12 +76,13 @@ public class TraverseReads extends TraversalEngine {
|
||||||
/**
|
/**
|
||||||
* Traverse by reads, given the data and the walker
|
* Traverse by reads, given the data and the walker
|
||||||
*
|
*
|
||||||
* @param walker the walker to execute over
|
* @param walker the walker to traverse with
|
||||||
* @param shard the shard of data to feed the walker
|
* @param shard the shard, specifying the range of data to iterate over
|
||||||
* @param sum of type T, the return from the walker
|
* @param dataProvider the provider of the reads data
|
||||||
* @param <M> the generic type
|
* @param sum the value of type T, specified by the walker, to feed to the walkers reduce function
|
||||||
* @param <T> the return type of the reduce function
|
* @param <M> the map type of the walker
|
||||||
* @return
|
* @param <T> the reduce type of the walker
|
||||||
|
* @return the reduce variable of the read walker
|
||||||
*/
|
*/
|
||||||
public <M, T> T traverse(Walker<M, T> walker,
|
public <M, T> T traverse(Walker<M, T> walker,
|
||||||
Shard shard,
|
Shard shard,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue