Esempio n. 1
0
def buildComponentModel(p,apName,graphName):
  interfaces,connectors = p.componentView(apName)
  model = ComponentModel(interfaces,connectors)
  parser = ComponentXDotParser(model.graph())
  graph = parser.parse()
  drawGraph(graph,graphName)
  return True
Esempio n. 2
0
def buildComponentModel(p, apName, graphName):
    interfaces, connectors = p.componentView(apName)
    model = ComponentModel(interfaces, connectors)
    parser = ComponentXDotParser(model.graph())
    graph = parser.parse()
    drawGraph(graph, graphName)
    return True
Esempio n. 3
0
def buildComponentModel(p,apName,graphName):
  from cairis.gui.componentxdot import ComponentXDotParser
  from cairis.gui.ComponentModel import ComponentModel
  interfaces,connectors = p.componentView(apName)
  model = ComponentModel(interfaces,connectors)
  parser = ComponentXDotParser(model.graph())
  graph = parser.parse()
  drawGraph(graph,graphName)
  return True