cli
Class AbstractBenchmarkCmd

java.lang.Object
  extended by cli.AbstractCmdLine
      extended by cli.AbstractBenchmarkCmd
All Implemented Interfaces:
FileProcedure
Direct Known Subclasses:
BinPackingCmd, FcspCmd, RCPSPCmd, XcspCmd

public abstract class AbstractBenchmarkCmd
extends AbstractCmdLine
implements FileProcedure

The class define a command pattern designed for benchmarking. It parses input/output arguments as well as global settings (timelimit, seed, verbosity). A connection with an embedded/remote database could also be established.

Since:
11 nov. 2009 version 2.1.1
Version:
2.1.1
Author:
Arnaud Malapert

Field Summary
protected  File databaseFile
           
protected  String databaseURL
           
static IDbConnector DISCONNECTED
           
protected  File inputFile
           
protected  AbstractInstanceModel instance
           
protected  File outputDirectory
           
protected  File propertyFile
           
protected  long seed
           
protected  Random seeder
           
protected  Configuration settings
           
protected  Integer timeLimit
           
 
Fields inherited from class cli.AbstractCmdLine
arguments, CMD, hasExtraArgument, LOGGER, NONE, parser
 
Constructor Summary
AbstractBenchmarkCmd(Configuration settings)
           
 
Method Summary
protected  void checkData()
          check the validity of the command line
protected  void configureInstance()
           
protected abstract  AbstractInstanceModel createInstance()
           
protected  void execute()
           
 void setGlobalVerbosity(Verbosity verbosity)
           
 
Methods inherited from class cli.AbstractCmdLine
doMain, exitOnException, help
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cli.explorer.FileProcedure
execute
 

Field Detail

inputFile

protected File inputFile

databaseURL

protected String databaseURL

databaseFile

protected File databaseFile

propertyFile

protected File propertyFile

outputDirectory

protected File outputDirectory

seed

protected long seed

timeLimit

protected Integer timeLimit

settings

protected final Configuration settings

seeder

protected Random seeder

instance

protected AbstractInstanceModel instance

DISCONNECTED

public static final IDbConnector DISCONNECTED
Constructor Detail

AbstractBenchmarkCmd

public AbstractBenchmarkCmd(Configuration settings)
Method Detail

setGlobalVerbosity

public void setGlobalVerbosity(Verbosity verbosity)

checkData

protected void checkData()
                  throws org.kohsuke.args4j.CmdLineException
Description copied from class: AbstractCmdLine
check the validity of the command line

Specified by:
checkData in class AbstractCmdLine
Throws:
org.kohsuke.args4j.CmdLineException

createInstance

protected abstract AbstractInstanceModel createInstance()

configureInstance

protected void configureInstance()

execute

protected void execute()
Specified by:
execute in class AbstractCmdLine


Copyright © 2012. All Rights Reserved.