Class GraphRelation


  • public class GraphRelation
    extends java.lang.Object
    Contains information of relation child -> parent unit: the current treated unit unitOriginatingAgency: the originatingAgency of the current unit parent: the parent unit of the current treated unit parentOriginatingAgency: the originatingAgency of the parent unit depth: the depth of the relation AU1 / \ \ / \ \ AU2 AU3 \ \ / \ \ / | AU4 / \ / \ / AU5 AU1/AU2 depth = 1 AU1/AU5 depth = 1 AU1/AU3 depth = 1 AU2/AU4 depth = 2 AU3/AU4 depth = 2 AU4/AU5 depth = 3 (ignored as we have already /AU5 with depth 1)
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphRelation​(java.lang.String unit, java.lang.String parent, java.lang.String parentOriginatingAgency, java.lang.Integer depth)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.Integer getDepth()
      Get depth
      java.lang.String getParent()
      Get parent unit
      java.lang.String getParentOriginatingAgency()
      Get parentOriginatingAgency
      java.lang.String getUnit()
      Get unit
      int hashCode()  
      void setDepth​(java.lang.Integer depth)
      Set depth
      void setParent​(java.lang.String parent)
      Set parent unit
      void setParentOriginatingAgency​(java.lang.String parentOriginatingAgency)
      Set parentOriginatingAgency
      void setUnit​(java.lang.String unit)
      Set unit
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphRelation

        public GraphRelation​(java.lang.String unit,
                             java.lang.String parent,
                             java.lang.String parentOriginatingAgency,
                             java.lang.Integer depth)
        Constructor
        Parameters:
        unit -
        parent -
        parentOriginatingAgency -
        depth -
    • Method Detail

      • getUnit

        public java.lang.String getUnit()
        Get unit
        Returns:
        unit
      • setUnit

        public void setUnit​(java.lang.String unit)
        Set unit
        Parameters:
        unit -
      • getParent

        public java.lang.String getParent()
        Get parent unit
        Returns:
        parent
      • setParent

        public void setParent​(java.lang.String parent)
        Set parent unit
        Parameters:
        parent -
      • getParentOriginatingAgency

        public java.lang.String getParentOriginatingAgency()
        Get parentOriginatingAgency
        Returns:
        parentOriginatingAgency
      • setParentOriginatingAgency

        public void setParentOriginatingAgency​(java.lang.String parentOriginatingAgency)
        Set parentOriginatingAgency
        Parameters:
        parentOriginatingAgency -
      • getDepth

        public java.lang.Integer getDepth()
        Get depth
        Returns:
        depth
      • setDepth

        public void setDepth​(java.lang.Integer depth)
        Set depth
        Parameters:
        depth -
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object