Class CostComputationDataCache

    • Method Detail

      • _initializeNatureData

        protected void _initializeNatureData​(List<OdfReferenceTableEntry> teachingNatures)
        Retrieve teaching nature values created and initialize informations about them in the cache
        Parameters:
        teachingNatures - list of teaching natures
      • addExploredItem

        public boolean addExploredItem​(String exploredItem)
        Add the item to the list of explored items
        Parameters:
        exploredItem - the item to explore
        Returns:
        false if the item has already been added
      • getEqTDComputationByNature

        public String getEqTDComputationByNature​(String natureId)
        Get an eqTD computation mode for a natureId
        Parameters:
        natureId - the nature id
        Returns:
        the eqTD computation mode
      • getEqTDByNature

        public Double getEqTDByNature​(String natureId)
        Get an eqTD value for a natureId
        Parameters:
        natureId - the nature id
        Returns:
        the eqTD value
      • normExists

        public boolean normExists​(String normId)
        Check if the norms map contains the norm id
        Parameters:
        normId - the norm id
        Returns:
        true if the norms map contains the norm id
      • natureInNormExists

        public boolean natureInNormExists​(String normId,
                                          String natureId)
        Check if the norms map contains the nature id
        Parameters:
        normId - the norm id
        natureId - the nature id
        Returns:
        true if the norms map contains the nature id
      • getYearNature

        public String getYearNature()
        Get the identifier of the year nature.
        Returns:
        the identifier of the year ("annee") container's nature, can be null
      • getProgramItemData

        public ProgramItemData getProgramItemData​(String programItemId)
        Get the full program item (or course part, or orgunit) computed data
        Parameters:
        programItemId - the identifier of the object
        Returns:
        a ProgramItemData containing all useful informations for a given program item (or course part, or orgunit)
      • getEffectives

        public Effectives getEffectives​(String programItemId)
        Get a computed effective for a program item id
        Parameters:
        programItemId - the program item (or course part) identifier
        Returns:
        the computed effective
      • putEffectives

        public void putEffectives​(String programItemId,
                                  Effectives effectives)
        Put a computed effective in the map
        Parameters:
        programItemId - the program item (or course part) identifier
        effectives - the effectives
      • getWeight

        public Double getWeight​(String programItemId)
        Get a weight for a program item
        Parameters:
        programItemId - the program item id
        Returns:
        the weight
      • putWeight

        public void putWeight​(String programItemId,
                              Double weight)
        Put a weight in the cache for a program item (or course part)
        Parameters:
        programItemId - the program item (or course part) identifier
        weight - the weight
      • getVolumesOfHours

        public VolumesOfHours getVolumesOfHours​(String programItemId)
        Get the volumes of hours for a program item id
        Parameters:
        programItemId - the program item (or course part) identifier
        Returns:
        the volumes of hours
      • putVolumesOfHours

        public void putVolumesOfHours​(String programItemId,
                                      VolumesOfHours volumesOfHours)
        Put volumes of hours in the cache for a program item (or course part)
        Parameters:
        programItemId - the program item (or course part) identifier
        volumesOfHours - the volumes of hours
      • getGroups

        public Groups getGroups​(String programItemId)
        Get the groups for a program item id
        Parameters:
        programItemId - the program item (or course part) identifier
        Returns:
        the groups
      • putGroups

        public void putGroups​(String programItemId,
                              Groups groups)
        Put groups in the cache for a program item (or course part)
        Parameters:
        programItemId - the program item (or course part) identifier
        groups - the groups
      • getEqTD

        public EqTD getEqTD​(String programItemId)
        Get the td equivalent for a program item id
        Parameters:
        programItemId - the program item (or course part) identifier
        Returns:
        the td equivalent
      • putEqTD

        public void putEqTD​(String programItemId,
                            EqTD eqTD)
        Put td equivalent in the cache for a program item (or course part)
        Parameters:
        programItemId - the program item (or course part) identifier
        eqTD - the td equivalent
      • getNormDetails

        public NormDetails getNormDetails​(String programItemId)
        Get the norm details for a program item id
        Parameters:
        programItemId - the program item (or course part) identifier
        Returns:
        the norm details
      • putNormDetails

        public void putNormDetails​(String programItemId,
                                   NormDetails normDetails)
        Put norm details in the cache for a program item (or course part)
        Parameters:
        programItemId - the program item (or course part) identifier
        normDetails - the norm details
      • getOverriddenEffective

        public Long getOverriddenEffective​(String programItemId)
        Get the overridden effective of a program item
        Parameters:
        programItemId - the program item id
        Returns:
        the overridden effective
      • getOverriddenGroups

        public Long getOverriddenGroups​(String programItemId)
        Get the overridden number groups of a program item
        Parameters:
        programItemId - the program item id
        Returns:
        the overridden number of groups
      • getOverriddenVolumeOfHours

        public Double getOverriddenVolumeOfHours​(String programItemId)
        Get the overridden volume of hours of a program item
        Parameters:
        programItemId - the program item id
        Returns:
        the overridden volume of hours