Package att.grappa

Examples of att.grappa.Node


  public void addOutputEdge(EclipseCFGEdge edge) {
    outputs.add(edge);
  }

  public Node addToGraph(Graph graph) {
    Node thisNode = graph.findNodeByName(myId);

    if (thisNode == null) {
      thisNode = new Node(graph);
      thisNode.setName(myId);
      thisNode.setAttribute(Node.LABEL_ATTR, getName());
      thisNode.setAttribute(Node.FONTNAME_ATTR, "Helvetica");
      thisNode.setAttribute(Node.FONTSIZE_ATTR, 10);
     
      graph.addNode(thisNode);
   
      for (EclipseCFGEdge eclipseEdge : outputs) {
        EclipseCFGNode eclipseNode = eclipseEdge.getSink();
        Node source = eclipseNode.addToGraph(graph);
        eclipseEdge.addToGraph(graph, thisNode, source);
      }
    }
    return thisNode;
  }
View Full Code Here


  public void addOutputEdge(EclipseCFGEdge edge) {
    outputs.add(edge);
  }

  public Node addToGraph(Graph graph) {
    Node thisNode = graph.findNodeByName(myId);

    if (thisNode == null) {
      thisNode = new Node(graph);
      thisNode.setName(myId);
      thisNode.setAttribute(Node.LABEL_ATTR, getName());
      thisNode.setAttribute(Node.FONTNAME_ATTR, "Helvetica");
      thisNode.setAttribute(Node.FONTSIZE_ATTR, new Integer(10));
     
      graph.addNode(thisNode);
   
      for (EclipseCFGEdge eclipseEdge : outputs) {
        EclipseCFGNode eclipseNode = eclipseEdge.getSink();
        Node source = eclipseNode.addToGraph(graph);
        eclipseEdge.addToGraph(graph, thisNode, source);
      }
    }
    return thisNode;
  }
View Full Code Here

          + g2Edges.size());
      return false;
    }

    for (Node node1 : (Vector<Node>) g1Nodes) {
      Node node2 = g2.findNodeByName(node1.getName());

      if (node2 == null) {
        log.info("G2 did not have node with name " + node1.getName());
        return false;
      }
View Full Code Here

TOP

Related Classes of att.grappa.Node

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.