add a place to store the walker return value, along with a method to retrieve it

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@910 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
aaron 2009-06-05 14:41:42 +00:00
parent 36fb6ca3c5
commit b323c58ef2
1 changed files with 18 additions and 7 deletions

View File

@ -41,6 +41,9 @@ public class GenomeAnalysisEngine {
/** our log, which we want to capture anything from this class */ /** our log, which we want to capture anything from this class */
private static Logger logger = Logger.getLogger(GenomeAnalysisEngine.class); private static Logger logger = Logger.getLogger(GenomeAnalysisEngine.class);
/** the return value from our walker */
private Object walkerReturn = null;
/** /**
* our constructor, where all the work is done * our constructor, where all the work is done
* <p/> * <p/>
@ -116,8 +119,8 @@ public class GenomeAnalysisEngine {
if (locationsList != null) if (locationsList != null)
locs = GenomeLocSortedSet.createSetFromList(locationsList); locs = GenomeLocSortedSet.createSetFromList(locationsList);
// excute the microscheduler // excute the microscheduler, storing the results
microScheduler.execute(my_walker, locs); walkerReturn = microScheduler.execute(my_walker, locs);
} }
@ -151,8 +154,8 @@ public class GenomeAnalysisEngine {
logger.info("Strictness is " + strictness); logger.info("Strictness is " + strictness);
genericEngineSetup(strictness); genericEngineSetup(strictness);
// store the results of the walker run
engine.traverse(my_walker); walkerReturn = engine.traverse(my_walker);
} }
@ -335,10 +338,18 @@ public class GenomeAnalysisEngine {
return this.engine; return this.engine;
} }
/** /** Gets the collection of GATK main application arguments for enhanced walker validation. */
* Gets the collection of GATK main application arguments for enhanced walker validation.
*/
public GATKArgumentCollection getArguments() { public GATKArgumentCollection getArguments() {
return this.argCollection; return this.argCollection;
} }
/**
* Get's the return value of the walker
*
* @return an Object representing the return value of the walker
*/
public Object getWalkerReturn() {
return walkerReturn;
}
} }