use of org.iobserve.planning.data.AllocationGroupsContainer in project iobserve-analysis by research-iobserve.
the class ModelTransformer method initModelTransformation.
private void initModelTransformation() throws IOException, InitializationException {
this.processedModelDir = this.planningData.getOriginalModelDir().appendSegment(ModelProcessing.PROCESSED_MODEL_FOLDER);
SnapshotBuilder.setBaseSnapshotURI(this.planningData.getOriginalModelDir());
final SnapshotBuilder snapshotBuilder = new SnapshotBuilder(ModelProcessing.PROCESSED_MODEL_FOLDER, this.originalModelHandler);
snapshotBuilder.createSnapshot();
this.planningData.setProcessedModelDir(this.processedModelDir);
this.processedModelHandler = new PCMModelHandler(new File(this.processedModelDir.toFileString()));
this.allocationModel = this.processedModelHandler.getAllocationModel();
this.cloudProfileModel = this.processedModelHandler.getCloudProfileModel();
this.costModel = this.processedModelHandler.getCostModel();
this.resourceEnvironmentModel = this.processedModelHandler.getResourceEnvironmentModel();
this.decisionModel = this.processedModelHandler.getDesignDecisionModel();
this.decisionSpace = this.processedModelHandler.getDesignDecisionModel();
if (this.decisionSpace == null) {
this.decisionSpace = DesignDecisionModelFactory.createDecisionSpace("processedDecision");
}
final Allocation originalAllocation = this.originalModelHandler.getAllocationModel();
this.originalAllocationGroups = new AllocationGroupsContainer(originalAllocation);
}
Aggregations