def buildRiskObstacleModel(p, apName, envName, graphName): from cairis.legacy.kaosxdot import KaosXDotParser from cairis.legacy.KaosModel import KaosModel assocs = p.riskObstacleModel(apName, envName) model = KaosModel(list(assocs.values()), envName, 'obstacle', apName) parser = KaosXDotParser('obstacle', model.graph()) graph = parser.parse() drawGraph(graph, graphName) return True
def buildComponentGoalModel(p, cName, graphName): from cairis.legacy.kaosxdot import KaosXDotParser from cairis.legacy.KaosModel import KaosModel assocs = p.componentGoalModel(cName) model = KaosModel(list(assocs.values()), '', 'template_goal') parser = KaosXDotParser('goal', model.graph()) graph = parser.parse() drawGraph(graph, graphName) return True