com.gcapmedia.dab.epg
Class Epg

java.lang.Object
  extended by com.gcapmedia.dab.epg.Epg

public class Epg
extends java.lang.Object

Container for all EPG information. It may contain schedule, programme or group information.:

Programme Groups are used as a container for group elements.

Schedules allow programmes to be identified within a given time period. Note that for contiguous schedules the stop time of a schedule should be equal to the start time of the next schedule

Alternate Sources are used to indicate whether this or related EPG data is available elsewhere.

Programme, Programme Event and Programme Groups all point 'upwards' to their parent group(s) using the memberOf link.


Constructor Summary
Epg()
          Create a new EPG container for DAB
Epg(SystemType type)
          Create a new EPG container
 
Method Summary
 void addProgramme(Programme programme)
          Add a programme
 void addProgrammeGroup(ProgrammeGroup group)
          Add a programme group
 boolean equals(java.lang.Object obj)
           
 java.util.List<ProgrammeGroup> getProgrammeGroups()
           
 java.util.List<Programme> getProgrammes()
           
 Schedule getSchedule()
           
 SystemType getSystemType()
           
 void setSchedule(Schedule schedule)
          Set the schedule
 void setSystemType(SystemType type)
          Set the EPG system type (DAB or DRM)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Epg

public Epg()
Create a new EPG container for DAB


Epg

public Epg(SystemType type)
Create a new EPG container

Parameters:
type - EPG System type
Method Detail

setSystemType

public void setSystemType(SystemType type)
Set the EPG system type (DAB or DRM)

Parameters:
type -

getSystemType

public SystemType getSystemType()
Returns:
Returns the system type

addProgrammeGroup

public void addProgrammeGroup(ProgrammeGroup group)
Add a programme group

Parameters:
group - Programme group to add

getProgrammeGroups

public java.util.List<ProgrammeGroup> getProgrammeGroups()
Returns:
Returns all programme groups

addProgramme

public void addProgramme(Programme programme)
Add a programme

Parameters:
programme - Programme to add

getProgrammes

public java.util.List<Programme> getProgrammes()
Returns:
Returns all programmes

setSchedule

public void setSchedule(Schedule schedule)
Set the schedule

Parameters:
schedule - Schedule to set

getSchedule

public Schedule getSchedule()
Returns:
Returns the Schedule

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2007. All Rights Reserved.