|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--haifa.shopsim.lab.BatchRunner
This class is run from the command line. It runs job shops and serializes the ShopStatistics Objects into files. These files may later either be view with the RichStatReader class or appended in the mathematicaShopRun format to the some text file using the DataFileWriter class. Note that if the class is told to run with an outputfile named outToday, it will create the files outToday1, outToday2 etc. Each having a batch size of results. Be carefull when you use it.
Field Summary | |
(package private) static int |
batchSize
The batch size. |
(package private) java.lang.String |
jbsFileName
The file name of the jbs file. |
(package private) int |
numSamples
The number of samples to be sampled on each size. |
(package private) java.lang.String |
outputFileName
The current file that gets the output. |
(package private) RandomTimeMaker |
randomTimeMaker
|
(package private) ShopAlgorithm |
shopAlgorithm
|
(package private) ShopData |
shopData
|
(package private) FastShopRun |
simulator
|
(package private) ProblemSizeChooser |
sizeChooser
|
(package private) int[] |
sizes
The array of sizes that are to be sampled. |
(package private) RichStatisticsCollector |
statColl
|
(package private) static java.lang.String |
USAGE
Defines the parameters that are to be given at the command line. |
Constructor Summary | |
BatchRunner(ShopAlgorithm shopAlgorithm_,
ShopData shopData_,
RandomTimeMaker randomTimeMaker_,
ProblemSizeChooser sizeChooser_,
int numSamples_,
int[] sizes_,
java.lang.String jbsFileName_,
java.lang.String outputFileName_)
Creates new BatchRunner |
Method Summary | |
static void |
doIdentical(java.lang.String[] args)
|
protected void |
doIt()
|
static void |
doLarge(java.lang.String[] args)
Reads parameters accroding to "-l" specification and runs batch runner. |
static void |
doProp(java.lang.String[] args)
|
static void |
main(java.lang.String[] args)
Usage is as seen in USAGE |
private static ShopAlgorithm |
setAlgorithm(java.lang.String arg)
Returns a shop algorithm based on the argument. |
static RandomTimeMaker |
setRV(java.lang.String arg)
Returns an RV object based on the argument. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String jbsFileName
java.lang.String outputFileName
FastShopRun simulator
ShopAlgorithm shopAlgorithm
RandomTimeMaker randomTimeMaker
ProblemSizeChooser sizeChooser
ShopData shopData
RichStatisticsCollector statColl
int numSamples
int[] sizes
static int batchSize
static final java.lang.String USAGE
Constructor Detail |
public BatchRunner(ShopAlgorithm shopAlgorithm_, ShopData shopData_, RandomTimeMaker randomTimeMaker_, ProblemSizeChooser sizeChooser_, int numSamples_, int[] sizes_, java.lang.String jbsFileName_, java.lang.String outputFileName_) throws java.lang.Exception
Method Detail |
protected void doIt() throws java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
public static void doIdentical(java.lang.String[] args) throws java.lang.Exception
public static void doProp(java.lang.String[] args) throws java.lang.Exception
public static void doLarge(java.lang.String[] args) throws java.lang.Exception
private static ShopAlgorithm setAlgorithm(java.lang.String arg)
public static RandomTimeMaker setRV(java.lang.String arg)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |