- java.lang.Object
-
- util.tvdataservice.ProgramDispatcher
-
public class ProgramDispatcher extends java.lang.Object
You can pass Program objects to this dispatcher and it will put it in the right AbstractChannelDayProgram.After passing all programs to the dispatcher you can request the AbstractChannelDayPrograms.
- Author:
- Til Schneider, www.murfman.de
-
-
Constructor Summary
Constructors Constructor Description ProgramDispatcher()
Creates a new instance of ProgramDispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch(Program program)
Dispatches the specified program to the right ChannelDayProgram.MutableChannelDayProgram
getChannelDayProgram(Date date, Channel channel)
Gets the ChannelDayProgram of the specified date and channel.
-
-
-
Method Detail
-
dispatch
public void dispatch(Program program)
Dispatches the specified program to the right ChannelDayProgram.If there is no such ChannelDayProgram, it will be created.
- Parameters:
program
- The program to dispatch
-
getChannelDayProgram
public MutableChannelDayProgram getChannelDayProgram(Date date, Channel channel)
Gets the ChannelDayProgram of the specified date and channel.- Parameters:
date
- The date of the wanted ChannelDayProgram.channel
- The channel of the wanted ChannelDayProgram.- Returns:
- The ChannelDayProgram of the specified date and channel.
-
-