TV-Browser 2.7.5 API

captureplugin.drivers.defaultdriver
Class ProgramTimeList

java.lang.Object
  extended by captureplugin.drivers.defaultdriver.ProgramTimeList

public class ProgramTimeList
extends Object

A List of ProgramTimes


Constructor Summary
ProgramTimeList()
          Create empty List
ProgramTimeList(ProgramTimeList list)
          Copy another List
 
Method Summary
 void add(ProgramTime prgTime)
          Add ProgramTime to List
 Object clone()
          Clone
 boolean contains(Program program)
          Contains Progam in list?
 int getMaxProgramsInTime(ProgramTime prgTime)
          Returns the Maximum amount of overlapping Programs
 ProgramTime getProgamTimeForProgram(Program program)
          Get ProgramTime for a specific Program
 Program[] getPrograms()
          Returns an Array of Programs in this List
 ProgramTime[] getProgramTimes()
          Returns an Array of ProgramTimes in this List
 void readData(ObjectInputStream in)
          Read Data from Stream
 void remove(ProgramTime prgTime)
          Removes a ProgramTime from List
 void writeData(ObjectOutputStream out)
          Save data to Stream
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramTimeList

public ProgramTimeList()
Create empty List


ProgramTimeList

public ProgramTimeList(ProgramTimeList list)
Copy another List

Parameters:
list - List to copy
Method Detail

clone

public Object clone()
Clone

Overrides:
clone in class Object

contains

public boolean contains(Program program)
Contains Progam in list?

Parameters:
program - Program
Returns:
true if Program is in List

add

public void add(ProgramTime prgTime)
Add ProgramTime to List

Parameters:
prgTime - ProgramTime to add

getProgamTimeForProgram

public ProgramTime getProgamTimeForProgram(Program program)
Get ProgramTime for a specific Program

Parameters:
program - Program
Returns:
ProgramTime for Program

remove

public void remove(ProgramTime prgTime)
Removes a ProgramTime from List

Parameters:
prgTime - ProgramTime

getPrograms

public Program[] getPrograms()
Returns an Array of Programs in this List

Returns:
Programs in this List

getProgramTimes

public ProgramTime[] getProgramTimes()
Returns an Array of ProgramTimes in this List

Returns:
List of all programtimes

writeData

public void writeData(ObjectOutputStream out)
               throws IOException
Save data to Stream

Parameters:
out - save to this stream
Throws:
IOException - problems during save operation

readData

public void readData(ObjectInputStream in)
              throws IOException,
                     ClassNotFoundException
Read Data from Stream

Parameters:
in - read from this stream
Throws:
IOException - problems during read operation
ClassNotFoundException - class creation problems

getMaxProgramsInTime

public int getMaxProgramsInTime(ProgramTime prgTime)
Returns the Maximum amount of overlapping Programs

Parameters:
prgTime - Check for Time-Overlappings with this Program
Returns:
number of time-overlappings with Program

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)