Exemplo 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
Exemplo 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
Exemplo 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