Class ExecutionPhase
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.process.phase.AbstractPhase<ExecutionContext,List<Combination>,Map<Combination,TestResult>>
-
- de.rwth.swc.coffee4j.engine.process.phase.execution.ExecutionPhase
-
- All Implemented Interfaces:
Phase<List<Combination>,Map<Combination,TestResult>>
public class ExecutionPhase extends AbstractPhase<ExecutionContext,List<Combination>,Map<Combination,TestResult>>
Manages an execution Phase with an enforces execution strategy.Enforces in this case means, that for a combination all
TestInputExecutor
supplied by theExecutionContext
are executed. It does not matter if some executors fails
-
-
Field Summary
-
Fields inherited from class de.rwth.swc.coffee4j.engine.process.phase.AbstractPhase
context
-
-
Constructor Summary
Constructors Constructor Description ExecutionPhase(ExecutionContext executionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Combination,TestResult>
execute(List<Combination> input)
Executes the phase.void
setExecutionMode(ExecutionMode executionMode)
Sets the execution mode used by this execution phase.
-
-
-
Constructor Detail
-
ExecutionPhase
public ExecutionPhase(ExecutionContext executionContext)
-
-
Method Detail
-
setExecutionMode
public void setExecutionMode(ExecutionMode executionMode)
Sets the execution mode used by this execution phase.This needs be be cleaned up. Currently the problem is that the same execution phase instance is used for initial and fault characterization execution, so the mode has to be changed if the fault characterization test inputs should be executed even if one of them fails.
- Parameters:
executionMode
- the mode in which this execution phase should work
-
execute
public Map<Combination,TestResult> execute(List<Combination> input)
Description copied from interface:Phase
Executes the phase. Transform some input int some output- Parameters:
input
- the input of the phase- Returns:
- the output of the phase
-
-