Class HierarchyNetwork


  • public class HierarchyNetwork
    extends Object
    The Class HierarchyNetwork representing a graphical hierarchy network, intended to visualize CellML hierarchical dependencies.

    A HierarchyNetwork contains components which may contain variables. Moreover, there may be directed connections from parent components to child components representing the hierarchy among components. In addition, variables can be connected visualizing the flow of information between them.
    see also HierarchyNetwork

    Author:
    Martin Scharm
    • Constructor Detail

      • HierarchyNetwork

        public HierarchyNetwork()
        Instantiates a new hierarchy network.
    • Method Detail

      • getNextComponentID

        public int getNextComponentID()
        Gets the next component id.
        Returns:
        the next component id
      • getNextVariableID

        public int getNextVariableID()
        Gets the next variable id.
        Returns:
        the next variable id
      • setComponent

        public void setComponent​(de.unirostock.sems.xmlutils.ds.TreeNode node,
                                 HierarchyNetworkComponent comp)
        Adds a new component to the hierarchy.
        Parameters:
        node - the node in the document tree
        comp - the network component
      • setVariable

        public void setVariable​(de.unirostock.sems.xmlutils.ds.TreeNode node,
                                HierarchyNetworkVariable var)
        Adds a new variable.
        Parameters:
        node - the node in the document tree
        var - the variable
      • getComponent

        public HierarchyNetworkComponent getComponent​(de.unirostock.sems.xmlutils.ds.TreeNode node)
        Gets a component.
        Parameters:
        node - the node from the document tree
        Returns:
        the corresponding component
      • getVariable

        public HierarchyNetworkVariable getVariable​(de.unirostock.sems.xmlutils.ds.TreeNode node)
        Gets a variable.
        Parameters:
        node - the node from the document tree
        Returns:
        the corresponding variable
      • setSingleDocument

        public void setSingleDocument()
        Sets the single document flag for non-comparison graphs.