use of org.iobserve.adaptation.stages.ComposedActionComputation in project iobserve-analysis by research-iobserve.
the class ComposedActionComputationTest method executeStage.
private SystemAdaptation executeStage(final AdaptationData adaptationData) {
final InitialElementProducer<AdaptationData> producer = new InitialElementProducer<>(adaptationData);
final ComposedActionComputation composedActionComputation = new ComposedActionComputation();
final CollectorSink<SystemAdaptation> collector = new CollectorSink<>();
final ComposedActionComputationTestConfig configuration = new ComposedActionComputationTestConfig(producer, this.actionFactoryInitializer, composedActionComputation, collector);
final Execution<ComposedActionComputationTestConfig> execution = new Execution<>(configuration);
execution.executeBlocking();
return collector.getElements().get(0);
}
Aggregations