Class BatchConceptRunner
java.lang.Object
neqsim.process.fielddevelopment.evaluation.BatchConceptRunner
Batch runner for parallel evaluation of multiple concepts.
Enables overnight batch runs for concept screening with:
- Parallel execution across concepts
- Automatic result aggregation
- Concept ranking and comparison
- Progress tracking
Example usage:
BatchConceptRunner runner = new BatchConceptRunner(); runner.addConcept(concept1); runner.addConcept(concept2); runner.addConcept(concept3); BatchResults results = runner.runAll(); ConceptKPIs best = results.getBestConcept();
- Version:
- 1.0
- Author:
- ESOL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResults from batch evaluation.private classTask for parallel concept evaluation.static interfaceProgress listener interface. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<FieldConcept> private final ConceptEvaluatorprivate int -
Constructor Summary
ConstructorsConstructorDescriptionCreates a batch runner with default evaluator.BatchConceptRunner(ConceptEvaluator evaluator) Creates a batch runner with custom evaluator. -
Method Summary
Modifier and TypeMethodDescriptionaddConcept(FieldConcept concept) Adds a concept to the batch.addConcepts(List<FieldConcept> conceptList) Adds multiple concepts to the batch.clear()Clears all concepts from the batch.intGets the number of concepts in the batch.Sets a progress listener.parallelism(int threads) Sets the parallelism level.Runs quick screening for all concepts.runAll()Runs evaluation for all concepts.
-
Field Details
-
concepts
-
evaluator
-
parallelism
private int parallelism -
progressListener
-
-
Constructor Details
-
BatchConceptRunner
public BatchConceptRunner()Creates a batch runner with default evaluator. -
BatchConceptRunner
Creates a batch runner with custom evaluator.- Parameters:
evaluator- concept evaluator to use
-
-
Method Details
-
addConcept
Adds a concept to the batch.- Parameters:
concept- concept to add- Returns:
- this runner
-
addConcepts
Adds multiple concepts to the batch.- Parameters:
conceptList- concepts to add- Returns:
- this runner
-
parallelism
Sets the parallelism level.- Parameters:
threads- number of parallel threads- Returns:
- this runner
-
onProgress
Sets a progress listener.- Parameters:
listener- progress listener- Returns:
- this runner
-
runAll
Runs evaluation for all concepts.- Returns:
- batch results
-
quickScreenAll
Runs quick screening for all concepts.- Returns:
- batch results
-
clear
-
getConceptCount
public int getConceptCount()Gets the number of concepts in the batch.- Returns:
- concept count
-