Class UnitGraphModel


  • public class UnitGraphModel
    extends java.lang.Object
    unit graph model.
    • Constructor Detail

      • UnitGraphModel

        public UnitGraphModel​(java.lang.String id,
                              java.lang.String originatingAgency)
        Parameters:
        id - unit id of unit
        originatingAgency - originating agency of unit
      • UnitGraphModel

        public UnitGraphModel​(Unit unit)
        Parameters:
        unit -
    • Method Detail

      • addParent

        public void addParent​(UnitGraphModel parent)
        Add graph parent information into current graph. Compute all graph information from current au.
        Parameters:
        parent - graph information.
      • id

        public java.lang.String id()
      • parents

        public java.util.Set<java.lang.String> parents()
      • ancestors

        public java.util.Set<java.lang.String> ancestors()
      • originatingAgency

        public java.lang.String originatingAgency()
      • originatingAgencies

        public java.util.Set<java.lang.String> originatingAgencies()
      • unitDepths

        public java.util.Map<java.lang.String,​java.util.Collection<java.lang.String>> unitDepths()
      • minDepth

        public int minDepth()
      • maxDepth

        public int maxDepth()
      • graph

        public java.util.Set<java.lang.String> graph()
      • ancestorByOriginatingAgency

        public java.util.Map<java.lang.String,​java.util.Collection<java.lang.String>> ancestorByOriginatingAgency()