use of org.opentosca.toscana.plugins.cloudformation.visitor.PrepareModelRelationshipVisitor in project TOSCAna by StuPro-TOSCAna.
the class CloudFormationLifecycle method prepare.
@Override
public void prepare() {
logger.info("Prepare model for compatibility to CloudFormation");
Set<RootNode> nodes = model.getNodes();
Graph<RootNode, RootRelationship> topology = model.getTopology();
PrepareModelNodeVisitor prepareModelNodeVisitor = new PrepareModelNodeVisitor(context, cfnModule);
logger.info("Prepare nodes");
visitComputeNodesFirst(nodes, prepareModelNodeVisitor);
logger.info("Prepare relationships");
PrepareModelRelationshipVisitor prepareModelRelationshipVisitor = new PrepareModelRelationshipVisitor(context, cfnModule);
visitAllRelationships(topology.edgeSet(), prepareModelRelationshipVisitor);
}
Aggregations