Search in sources :

Example 1 with AtomicActionComputation

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

Aggregations

ExecutionPlan (org.iobserve.adaptation.executionplan.ExecutionPlan)1 AtomicActionComputation (org.iobserve.adaptation.stages.AtomicActionComputation)1 SystemAdaptation (org.iobserve.planning.systemadaptation.SystemAdaptation)1 Execution (teetime.framework.Execution)1 CollectorSink (teetime.stage.CollectorSink)1 InitialElementProducer (teetime.stage.InitialElementProducer)1