|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.batch.BatchProcess
public class BatchProcess
This class provides the logic of the batch process for testing algorithm configurations.
| Constructor Summary | |
|---|---|
BatchProcess(BatchProcessContainer container)
Constructs a new batch process. |
|
| Method Summary | |
|---|---|
void |
addGestureSet(GestureSet set)
Adds a gesture set. |
void |
addGestureSets(List<GestureSet> sets)
Adds a list of gesture sets. |
BatchResultSet |
call()
|
static List<Configuration> |
createConfigurations(File file)
Creates a list of configurations. |
static List<Configuration> |
createConfigurations(List<BatchAlgorithm> algorithms)
Creates a list of configurations. |
protected static void |
processForLoopParameter(BatchParameter param,
Configuration configuration,
String algorithm,
List<BatchParameter> parameters,
int index,
List<Configuration> configurations)
Processes for loop parameters. |
protected static void |
processPowerSetParameter(BatchParameter param,
Configuration configuration,
String algorithm,
List<BatchParameter> parameters,
int index,
List<Configuration> configurations)
Processes power set parameters. |
protected static void |
processSequenceParameter(BatchParameter param,
Configuration configuration,
String algorithm,
List<BatchParameter> parameters,
int index,
List<Configuration> configurations)
Processes sequence parameters. |
protected static void |
processSimpleParameter(BatchParameter param,
Configuration configuration,
String algorithm,
List<BatchParameter> parameters,
int index,
List<Configuration> configurations)
Processes simple value parameters. |
BatchResultSet |
run()
Runs the batch process. |
void |
setTestSet(TestSet testSet)
Adds a test set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchProcess(BatchProcessContainer container)
file - the XML file with the configuration.| Method Detail |
|---|
public void setTestSet(TestSet testSet)
testSet - the test set to be added.public void addGestureSet(GestureSet set)
set - the gesture set to be added.public void addGestureSets(List<GestureSet> sets)
sets - the list of gesture sets to be added.public BatchResultSet run()
public static List<Configuration> createConfigurations(List<BatchAlgorithm> algorithms)
algorithms - the BatchAlgorithm instances.
public static List<Configuration> createConfigurations(File file)
file - the file containing the configurations.
protected static void processSimpleParameter(BatchParameter param,
Configuration configuration,
String algorithm,
List<BatchParameter> parameters,
int index,
List<Configuration> configurations)
param - the batch parameter.configuration - the configuration.algorithm - the algorithm to be used.parameters - the batch parameters to be used.index -
protected static void processPowerSetParameter(BatchParameter param,
Configuration configuration,
String algorithm,
List<BatchParameter> parameters,
int index,
List<Configuration> configurations)
param - configuration - algorithm - parameters - index - configurations -
protected static void processSequenceParameter(BatchParameter param,
Configuration configuration,
String algorithm,
List<BatchParameter> parameters,
int index,
List<Configuration> configurations)
param - configuration - algorithm - parameters - index - configurations -
protected static void processForLoopParameter(BatchParameter param,
Configuration configuration,
String algorithm,
List<BatchParameter> parameters,
int index,
List<Configuration> configurations)
param - configuration - algorithm - parameters - index - configurations -
public BatchResultSet call()
throws Exception
call in interface Callable<BatchResultSet>Exception
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||