Package classycle.graph

Examples of classycle.graph.Vertex


   * only a class and its inner classes the name is the fully-qualified
   * class name of the outer class extended by "and inner classes".
   */
  public static String createName(StrongComponent component) {
    GraphAttributes ga = (GraphAttributes) component.getAttributes();
    Vertex fragmenter = ga.getBestFragmenters()[0];
    String result = ((NameAttributes) fragmenter.getAttributes()).getName();
    //String result = component.getVertex(0).getAttributes().toString();
    if (component.getNumberOfVertices() > 1) {
      AtomicVertex vertex = component.getVertex(0);
      NameAttributes attributes = (NameAttributes) vertex.getAttributes();
      String outerClass = attributes.getName();
View Full Code Here


  public void renderGraph(DependencyPathRenderer renderer)
  {
    Set<Vertex> visitedVertices = new HashSet<Vertex>();
    for (int i = 0; i < _graph.length; i++)
    {
      Vertex vertex = _graph[i];
      if (_startSetCondition.isFulfilled(vertex))
      {
        renderer.add(getNameOf(vertex));
        renderPaths(renderer, vertex, visitedVertices);
      }
View Full Code Here

  {
    visitedVertices.add(vertex);
    renderer.increaseIndentation();
    for (int i = 0, n = vertex.getNumberOfOutgoingArcs(); i < n; i++)
    {
      Vertex headVertex = vertex.getHeadVertex(i);
      if (_vertices.contains(headVertex)
          && !_startSetCondition.isFulfilled(headVertex))
      {
        renderer.add(getNameOf(headVertex));
        if (!_finalSetCondition.isFulfilled(headVertex)
View Full Code Here

        {
          if (startCondition.isFulfilled(vertex))
          {
            for (int j = 0, n = vertex.getNumberOfOutgoingArcs(); j < n; j++)
            {
              Vertex headVertex = vertex.getHeadVertex(j);
              if (_finalCondition.isFulfilled(headVertex) == false
                      && startCondition.isFulfilled(headVertex) == false)
              {
                invalids.add(vertex);
                invalids.add((AtomicVertex) headVertex);
View Full Code Here

TOP

Related Classes of classycle.graph.Vertex

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.