Class EqTD

    • Constructor Detail

      • EqTD

        public EqTD​(String programItemId)
        The constructor
        Parameters:
        programItemId - the program item id
    • Method Detail

      • getLocalEqTD

        public Double getLocalEqTD​(String programItemPath)
        Get the local eqTD value
        Parameters:
        programItemPath - the program item path
        Returns:
        the local eqTD value
      • addLocalEqTD

        public void addLocalEqTD​(String programItemPath,
                                 Double eqTD)
        Set the local eqTD value
        Parameters:
        programItemPath - the program item path
        eqTD - the value
      • getGlobalEqTD

        public Double getGlobalEqTD()
        Get the global eqTD value
        Returns:
        the global eqTD value
      • setGlobalEqTD

        public void setGlobalEqTD​(Double eqTD)
        Set the global eqTD value
        Parameters:
        eqTD - the value
      • addProRatedEqTD

        public void addProRatedEqTD​(String programItemPath,
                                    Double eqTD)
        Set the pro-rated eqTD value
        Parameters:
        programItemPath - the program item path
        eqTD - the value
      • getProRatedEqTD

        public Double getProRatedEqTD​(String programItemPath)
        Get the pro-rated eqTD value
        Parameters:
        programItemPath - the program item path
        Returns:
        the pro-rated eqTD value
      • sum

        public void sum​(EqTD eqTD,
                        Double weight,
                        String childPath,
                        String parentPath)
        Sum pro-rated and local eqTD values
        Parameters:
        eqTD - The second eqTD object to sum
        weight - the weight
        childPath - the path of the old eqTD value
        parentPath - the path of the new eqTD value