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

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

    • EqTD

      public EqTD()
      The constructor
  • Method Details

    • getGlobalEqTD

      Get the global eqTD value
      Returns:
      the global eqTD value
    • getAllGlobalEqTD

      Get the global eqTD value by course part
      Returns:
      all global eqTD values by course part
    • addGlobalEqTD

      public void addGlobalEqTD(String coursePartId, Double eqTD)
      Set the global eqTD value
      Parameters:
      coursePartId - The course part identifier
      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
    • addLocalEqTD

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

      public void addLocalEqTD4CoursePart(String itemPath, boolean held)
      Set the local eqTD value for a course part
      Parameters:
      itemPath - the course part path
      held - true if the course part is held by the current step
    • 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
    • sum

      public void sum(EqTD eqTD, String nameInPath)
      Sum pro-rated and local eqTD values
      Parameters:
      eqTD - The second eqTD object to sum
      nameInPath - the name to search in the path