2009-03-18 07:22:37 +08:00
|
|
|
package org.broadinstitute.sting.gatk.walkers;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Created by IntelliJ IDEA.
|
|
|
|
|
* User: hanna
|
|
|
|
|
* Date: Mar 17, 2009
|
|
|
|
|
* Time: 1:53:31 PM
|
|
|
|
|
* To change this template use File | Settings | File Templates.
|
|
|
|
|
*/
|
2009-03-27 00:22:35 +08:00
|
|
|
public abstract class Walker {
|
2009-03-18 07:22:37 +08:00
|
|
|
// TODO: Can a walker be templatized so that map and reduce live here?
|
2009-03-27 00:22:35 +08:00
|
|
|
public String getName() {
|
|
|
|
|
// Return name of class, trimming 'Walker' from the end if present.
|
|
|
|
|
String className = getClass().getSimpleName();
|
|
|
|
|
if(className.endsWith(Walker.class.getSimpleName()))
|
|
|
|
|
return className.substring(0,className.lastIndexOf(Walker.class.getSimpleName()));
|
|
|
|
|
else
|
|
|
|
|
return className;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void initialize() { }
|
|
|
|
|
public void onTraversalDone() { }
|
2009-03-18 07:22:37 +08:00
|
|
|
}
|