use of org.iobserve.adaptation.stages.AtomicActionComputation in project iobserve-analysis by research-iobserve.
the class AtomicActionComputationTest method executeStage.
private ExecutionPlan executeStage(final SystemAdaptation systemAdaptationModel) {
final InitialElementProducer<SystemAdaptation> producer = new InitialElementProducer<>(systemAdaptationModel);
final AtomicActionComputation atomicActionComputation = new AtomicActionComputation();
final CollectorSink<ExecutionPlan> collector = new CollectorSink<>();
final AtomicActionComputationTestConfig configuration = new AtomicActionComputationTestConfig(producer, atomicActionComputation, collector);
final Execution<AtomicActionComputationTestConfig> execution = new Execution<>(configuration);
execution.executeBlocking();
return collector.getElements().get(0);
}
Aggregations