Class UnitGraphModel


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

      Constructors 
      Constructor Description
      UnitGraphModel​(Unit unit)  
      UnitGraphModel​(java.lang.String id, java.lang.String originatingAgency)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addParent​(UnitGraphModel parent)
      Add graph parent information into current graph.
      java.util.Set<java.lang.String> ancestors()  
      java.util.Set<java.lang.String> graph()  
      java.lang.String id()  
      int maxDepth()  
      int minDepth()  
      java.util.Set<java.lang.String> originatingAgencies()  
      java.lang.String originatingAgency()  
      java.util.Set<java.lang.String> parents()  
      java.util.Map<java.lang.String,​java.util.Collection<java.lang.String>> unitDepths()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()