Class UnitNode

  • Direct Known Subclasses:
    UnitRuleCompute

    public class UnitNode
    extends java.lang.Object
    Deprecated.
    : Use the new api /unitsWithInheritedRules instead. To be removed in future releases.
    Object to build the graph of unit
    • Constructor Detail

      • UnitNode

        public UnitNode()
        Deprecated.
        Empty Constructor
      • UnitNode

        public UnitNode​(UnitSimplified u)
        Deprecated.
        constructor with UnitSimplified
        Parameters:
        u - UnitSimplified
    • Method Detail

      • buildAncestors

        public void buildAncestors​(java.util.Map<java.lang.String,​UnitSimplified> parentMap,
                                   java.util.Map<java.lang.String,​UnitNode> allUnitNode,
                                   java.util.Set<java.lang.String> rootList)
        Deprecated.
        Build a graph of all parents
        Parameters:
        parentMap - map of parent unit
        allUnitNode - map a all unit
        rootList - list of root
      • getDirectParent

        public java.util.Map<java.lang.String,​UnitNode> getDirectParent()
        Deprecated.
        Returns:
        DirectParent node
      • getUnit

        public UnitSimplified getUnit()
        Deprecated.
        Returns:
        UnitSimplified
      • getAllUnitNode

        public java.util.Map<java.lang.String,​UnitNode> getAllUnitNode()
        Deprecated.
        Returns:
        the map of all unit node
      • setAllUnitNode

        public UnitNode setAllUnitNode​(java.util.Map<java.lang.String,​UnitNode> allUnitNode)
        Deprecated.
        Parameters:
        allUnitNode - map of all unit node
        Returns:
        UnitNOde and allUnitNode is setted