Search in sources :

Example 1 with ComposedActionComputation

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);
}
Also used : SystemAdaptation(org.iobserve.planning.systemadaptation.SystemAdaptation) InitialElementProducer(teetime.stage.InitialElementProducer) Execution(teetime.framework.Execution) CollectorSink(teetime.stage.CollectorSink) AdaptationData(org.iobserve.adaptation.data.AdaptationData) ComposedActionComputation(org.iobserve.adaptation.stages.ComposedActionComputation)

Aggregations

AdaptationData (org.iobserve.adaptation.data.AdaptationData)1 ComposedActionComputation (org.iobserve.adaptation.stages.ComposedActionComputation)1 SystemAdaptation (org.iobserve.planning.systemadaptation.SystemAdaptation)1 Execution (teetime.framework.Execution)1 CollectorSink (teetime.stage.CollectorSink)1 InitialElementProducer (teetime.stage.InitialElementProducer)1