use of org.iobserve.analysis.data.graph.ModelGraph in project iobserve-analysis by research-iobserve.
the class ModelComparer method execute.
@Override
protected void execute(final URI element) throws Exception {
boolean equalGraphs = false;
if (this.baseAdaptationData != null) {
// TODO finish
final PCMModelHandler modelProviders = new PCMModelHandler(new File(element.toFileString()));
final GraphFactory graphFactory = new GraphFactory();
final ModelGraph runtimeGraph = graphFactory.buildGraph(modelProviders);
if (runtimeGraph.equals(this.baseAdaptationData.getReDeploymentGraph()) && this.baseAdaptationData.getReDeploymentGraph().equals(runtimeGraph)) {
equalGraphs = true;
SystemEvaluation.disableEvaluation();
}
}
this.outputPort.send(Boolean.valueOf(equalGraphs));
}
use of org.iobserve.analysis.data.graph.ModelGraph in project iobserve-analysis by research-iobserve.
the class CandidateProcessing method execute.
@Override
protected void execute(final PlanningData element) throws Exception {
CandidateGeneration.LOG.info("Candiate Processing");
final AdaptationData adapdationData = element.getAdaptationData();
final GraphFactory factory = new GraphFactory();
final File directory = new File(adapdationData.getReDeploymentURI().toFileString());
final ModelGraph graph = factory.buildGraph(new PCMModelHandler(directory));
element.getAdaptationData().setReDeploymentGraph(graph);
this.outputPort.send(element.getAdaptationData());
}
Aggregations