Class GraphicalRepresentation


  • public class GraphicalRepresentation
    extends Object
    Holds a graph object constructed out of dependencies given in repository Objects.
    • Constructor Detail

      • GraphicalRepresentation

        public GraphicalRepresentation​(Set<RepositoryObject> repositories)
        Creates a new GraphicalRepresentation object. Creates a new simple directed graph adding all repository names as vertices and all dependencies as edges.
        Parameters:
        repositories - A set containing RepositoryObjects.
    • Method Detail

      • hasCycles

        public boolean hasCycles​(boolean showCycles)
        Check if the graph has cycles. If showCycles is true then print the detected cycles.
        Parameters:
        showCycles - If true print detected cycles.
        Returns:
        true if there are cycles, false otherwise.
      • createTopologyHierarchy

        public void createTopologyHierarchy()
        Creates topology layers of elements which are interchangeable in the topology of this graph.