View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   
6   package org.lcsim.recon.tracking.seedtracker.strategybuilder;
7   
8   import org.lcsim.util.Driver;
9   
10  /**
11   * Driver used to illustrate usage of StrategyBuilder w/out using the 
12   * command line. (Look at RunStrategyBuilder to learn how to use Strategy
13   * Builder with the command line). 
14   * 
15   * @author cozzy
16   */
17  public class ExampleDriver extends Driver {
18      
19     //this will be the output file... this example outputs it in the 
20     //system's temporary directory. 
21     private String outputfile = System.getProperties().getProperty("java.io.tmpdir")+
22              System.getProperties().getProperty("file.separator")+
23              "ExampleStrategyList.xml"; 
24     
25     public ExampleDriver(){
26         
27         StrategyBuilder builder = new StrategyBuilder(); 
28         
29         //set the output file 
30         builder.setOutput(outputfile);
31         builder.setVerbose(true); //verbose output
32        
33         //see the IStrategyBuilder interface for other settable options
34         
35         add(builder); 
36         
37     }
38     
39  
40  }