Class HierarchyNetworkComponent

  • All Implemented Interfaces:
    GraphEntity

    public class HierarchyNetworkComponent
    extends HierarchyNetworkEntity
    The Class HierarchyNetworkComponent representing a component of a HierarchyNetwork.
    Author:
    Martin Scharm
    • Constructor Detail

      • HierarchyNetworkComponent

        public HierarchyNetworkComponent​(HierarchyNetwork hn,
                                         String labelA,
                                         String labelB,
                                         de.unirostock.sems.xmlutils.ds.DocumentNode docA,
                                         de.unirostock.sems.xmlutils.ds.DocumentNode docB)
        Instantiates a new hierarchy network component.
        Parameters:
        hn - the hierarchy network
        labelA - the label as defined in the original document
        labelB - the label as defined in the modified document
        docA - the original document
        docB - the modified document
    • Method Detail

      • addVariable

        public void addVariable​(HierarchyNetworkVariable var)
        Adds a variable.
        Parameters:
        var - the variable
      • addChildA

        public void addChildA​(HierarchyNetworkComponent component)
        Adds a sub-component (below in hierarchy) as it is defined in the original version.
        Parameters:
        component - the sub-component
      • addChildB

        public void addChildB​(HierarchyNetworkComponent component)
        Adds a sub-component (below in hierarchy) as it is defined in the modified version.
        Parameters:
        component - the sub-component
      • setParentA

        public void setParentA​(HierarchyNetworkComponent component)
        Sets the parent component (above in hierarchy) as it is defined in the original version.
        Parameters:
        component - the new parent component
      • setParentB

        public void setParentB​(HierarchyNetworkComponent component)
        Sets the parent component (above in hierarchy) as it is defined in the modified version.
        Parameters:
        component - the new parent component
      • getParentA

        public HierarchyNetworkComponent getParentA()
        Gets the parent component as it is defined in the original version.
        Returns:
        the parent component
      • getParentB

        public HierarchyNetworkComponent getParentB()
        Gets the parent component as it is defined in the modified version.
        Returns:
        the parent component