Module tvbrowser
Package tvdataservice

Class MarkedProgramsMap


  • public class MarkedProgramsMap
    extends java.lang.Object
    A class that contains all markings for programs.
    Since:
    3.3.4
    Author:
    René Mach
    • Method Detail

      • getInstance

        public static MarkedProgramsMap getInstance()
        Returns:
        The instance of this class.
      • setMarkerForProgram

        void setMarkerForProgram​(Program p,
                                 Marker[] markerArr)
      • addMarkerForProgram

        void addMarkerForProgram​(Program p,
                                 Marker marker)
      • removeMarkerForProgram

        void removeMarkerForProgram​(Program p,
                                    Marker marker)
      • getMarkerForProgram

        Marker[] getMarkerForProgram​(Program p)
      • setMarkPriorityForProgram

        void setMarkPriorityForProgram​(Program p,
                                       int markPriority)
      • getMarkPriorityMaxForProgram

        int getMarkPriorityMaxForProgram​(Program p)
      • getMarkPrioritesForProgram

        java.lang.Integer[] getMarkPrioritesForProgram​(Program p)
      • validateMarkingForProgram

        boolean validateMarkingForProgram​(Program p)
      • revalidatePrograms

        public void revalidatePrograms()
      • validateMarkings

        public void validateMarkings()
      • getMarkedPrograms

        public Program[] getMarkedPrograms()
        Returns:
        All marked programs.
      • getTimeSortedProgramsForTray

        public Program[] getTimeSortedProgramsForTray​(ProgramFilter filter,
                                                      int markPriority,
                                                      int numberOfPrograms,
                                                      boolean includeOnAirPrograms)
        Parameters:
        filter - The filter to use for program filtering
        markPriority - The minimum mark priority of programs to find.
        numberOfPrograms - The number of programs to show. Use a value of 0 or below for all important programs.
        includeOnAirPrograms - If the marked programs array should contain running programs.
        Returns:
        The time sorted programs for the tray.
      • getTimeSortedProgramsForTray

        public Program[] getTimeSortedProgramsForTray​(ProgramFilter filter,
                                                      int markPriority,
                                                      int numberOfPrograms,
                                                      boolean includeOnAirPrograms,
                                                      boolean useTrayFilterSettings,
                                                      java.util.ArrayList<Program> excludePrograms)
        Parameters:
        filter - The filter to use for program filtering
        markPriority - The minimum mark priority of programs to find.
        numberOfPrograms - The number of programs to show. Use a value of 0 or below for all important programs.
        includeOnAirPrograms - If the marked programs array should contain running programs.If the tray filter settings should be used for filtering.
        useTrayFilterSettings - If the tray filter settings should be used for filtering.
        excludePrograms - The list with the excluded programs.
        Returns:
        The time sorted programs for the tray.