Class HierarchyNetworkVariable

  • All Implemented Interfaces:
    GraphEntity

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

      • HierarchyNetworkVariable

        public HierarchyNetworkVariable​(HierarchyNetwork hn,
                                        String labelA,
                                        String labelB,
                                        de.unirostock.sems.xmlutils.ds.DocumentNode docA,
                                        de.unirostock.sems.xmlutils.ds.DocumentNode docB,
                                        HierarchyNetworkComponent componentA,
                                        HierarchyNetworkComponent componentB)
        Instantiates a new hierarchy network variable.
        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
        componentA - the component in the original document
        componentB - the component in the modified document
    • Method Detail

      • addConnectionA

        public void addConnectionA​(HierarchyNetworkVariable var)
        Adds a connection as defined in the original document.
        Parameters:
        var - the variable to connect
      • addConnectionB

        public void addConnectionB​(HierarchyNetworkVariable var)
        Adds a connection as defined in the modified document.
        Parameters:
        var - the variable to connect
      • setComponentA

        public void setComponentA​(HierarchyNetworkComponent component)
        Sets the component hosting this variable as defined in the original document.
        Parameters:
        component - the host in the original version
      • setComponentB

        public void setComponentB​(HierarchyNetworkComponent component)
        Sets the component hosting this variable as defined in the modified document.
        Parameters:
        component - the host in the modified version
      • getComponent

        public HierarchyNetworkComponent getComponent()
        Gets the component. Will return:
        • the original component, if it's the same component as in the modified version
        • null, otherwise
        Returns:
        the component