a trivial interface and even more trivial implementations that do nothing (ignore the data they receive)
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@107 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
b83c8319c7
commit
29d2d460f3
|
|
@ -0,0 +1,19 @@
|
|||
package org.broadinstitute.sting.indels;
|
||||
|
||||
import net.sf.samtools.SAMRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: asivache
|
||||
* Date: Mar 20, 2009
|
||||
* Time: 12:55:01 AM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public class DiscardingPileReceiver implements RecordPileReceiver {
|
||||
@Override
|
||||
public void receive(Collection<SAMRecord> c) {
|
||||
return ; // do nothing, discard the pile.
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package org.broadinstitute.sting.indels;
|
||||
|
||||
import net.sf.samtools.SAMRecord;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: asivache
|
||||
* Date: Mar 20, 2009
|
||||
* Time: 12:53:53 AM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public class DiscardingReceiver implements RecordReceiver {
|
||||
@Override
|
||||
public void receive(SAMRecord r) {
|
||||
return ;// do nothing, discard the record
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package org.broadinstitute.sting.indels;
|
||||
|
||||
import net.sf.samtools.SAMRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: asivache
|
||||
* Date: Mar 19, 2009
|
||||
* Time: 7:51:47 PM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
|
||||
/** This interface abstracts processing of piles (collections) of SAM records.
|
||||
* Its only receive() method should be called to send a collection of records
|
||||
* to the implementation.
|
||||
*/
|
||||
|
||||
public interface RecordPileReceiver {
|
||||
public void receive(Collection<SAMRecord> c) ;
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
package org.broadinstitute.sting.indels;
|
||||
|
||||
import net.sf.samtools.SAMRecord;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: asivache
|
||||
* Date: Mar 19, 2009
|
||||
* Time: 7:28:40 PM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
|
||||
/** This interface abstracts processing of SAM records. Its only receive() method should be called to send a record
|
||||
* to the implementation.
|
||||
*/
|
||||
public interface RecordReceiver {
|
||||
public void receive(SAMRecord r);
|
||||
}
|
||||
Loading…
Reference in New Issue