Commit in lcsim/src/org/lcsim/job on MAIN | |||
JobControlManager.java | +11 | -1 | 1.55 -> 1.56 |
add method to create a DriverAdapter from Driver list
diff -u -r1.55 -r1.56 --- JobControlManager.java 26 Mar 2012 16:45:43 -0000 1.55 +++ JobControlManager.java 27 Mar 2012 03:08:41 -0000 1.56 @@ -46,6 +46,7 @@
import org.lcsim.LCSimVersion; import org.lcsim.units.Constants; import org.lcsim.util.Driver;
+import org.lcsim.util.DriverAdapter;
import org.lcsim.util.cache.FileCache; import org.lcsim.util.loop.LCIOEventSource; import org.lcsim.util.loop.LCSimLoop;
@@ -79,7 +80,7 @@
* which it should be discarded. If the {@link #run()} method is called twice on * the same manager, a fatal exception will be thrown. *
- * @version $Id: JobControlManager.java,v 1.55 2012/03/26 16:45:43 jeremy Exp $
+ * @version $Id: JobControlManager.java,v 1.56 2012/03/27 03:08:41 jeremy Exp $
* @author Jeremy McCormick */ // TODO Allow no input files when only Driver list is needed.
@@ -1459,4 +1460,13 @@
public void checkInputFiles(boolean c) { this.checkInputFilesExist = c; }
+ + // Wrap Drivers with DriverAdapter. + public DriverAdapter getDriverAdapter() { + Driver topDriver = new Driver(); + for (Driver driver : getDriverExecList()) { + topDriver.add(driver); + } + return new DriverAdapter(topDriver); + }
}
\ No newline at end of file
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1