java.lang.Object
org.ametys.plugins.odfpilotage.cost.entity.EqTD

public class EqTD extends Object
Class representing an EqTD
  • Constructor Details

    • EqTD

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

    • getLocalEqTD

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

      Get all local eqTD values
      Returns:
      all local eqTD values
    • addLocalEqTD

      public void addLocalEqTD(String programItemPath, Double eqTD)
      Set the local eqTD value
      Parameters:
      programItemPath - the program item path
      eqTD - the value
    • 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
    • getProRatedEqTD

      Get all pro-rated eqTD values
      Returns:
      all pro-rated eqTD values
    • getProgramItemId

      Get the program item id
      Returns:
      the program item id
    • 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