|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.ChannelAPI
public class ChannelAPI
A Channel represents a logical station on a broadcast, cable or satellite lineup.
Channel numbers always refer to logical channel numbers EXCEPT when they are explicitly stated to refer to physical channel numbers.
SageTV will automatically convert the following types to Channel if used for a parameter that requires the Channel type:
Airing - every Airing has an associated Channel, that Channel is used
MediaFile - due to the 1:1 mapping between MediaFiles and Airings, the MediaFile is resolved to an Airing and then to a Channel
| Method Summary | |
|---|---|
sage.Channel |
AddChannel(java.lang.String CallSign,
java.lang.String Name,
java.lang.String Network,
int StationID)
Adds a new Channel to the database. |
void |
ClearChannelMappingOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Clears any associated channel mappings that were created for this Channel on the specified Lineup |
void |
ClearPhysicalChannelMappingsOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Clears any associated physical channel mappings that were created for this Channel on the specified Lineup |
sage.Channel[] |
GetAllChannels()
Returns all of the Channels that are defined in the system |
java.lang.String |
GetChannelDescription(sage.Channel Channel)
Gets the descriptive name for this Channel. |
sage.Channel |
GetChannelForStationID(int StationID)
Returns the Channel object that has the corresponding station ID. |
sage.MetaImage |
GetChannelLogo(sage.Channel Channel)
Gets the logo image for the specified Channel if one exists |
java.lang.String |
GetChannelName(sage.Channel Channel)
Gets the name for this Channel. |
java.lang.String |
GetChannelNetwork(sage.Channel Channel)
Gets the name of the associated network for this Channel. |
java.lang.String |
GetChannelNumber(sage.Channel Channel)
Gets the channel number to tune to for this Channel. |
java.lang.String |
GetChannelNumberForLineup(sage.Channel Channel,
java.lang.String Lineup)
Gets the channel number to tune to for this Channel on the specified lineup. |
java.lang.String[] |
GetChannelNumbersForLineup(sage.Channel Channel,
java.lang.String Lineup)
Gets the channel numbers which can be used to tune this Channel on the specified lineup. |
java.lang.String |
GetPhysicalChannelNumberForLineup(sage.Channel Channel,
java.lang.String Lineup)
Gets the physical channel number to tune to for this Channel on the specified lineup. |
int |
GetStationID(sage.Channel Channel)
Returns an ID which can be used with GetChannelForStationID() for doing keyed lookups of Channel objects |
boolean |
IsChannelObject(sage.Channel Channel)
Returns true if the argument is a Channel object. |
boolean |
IsChannelRemappedOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Returns true if the user has remapped this Channel to a different number than it's default on the specified Lineup |
boolean |
IsChannelViewable(sage.Channel Channel)
Returns true if there is a configured lineup for which this channel is viewable. |
boolean |
IsChannelViewableOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Returns true if this Channel is viewable on the specified Lineup |
boolean |
IsChannelViewableOnNumberOnLineup(sage.Channel Channel,
java.lang.String ChannelNumber,
java.lang.String Lineup)
Returns true if this Channel is viewable on the specified Lineup on the specified channel number |
boolean |
IsPhysicalChannelRemappedOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Returns true if the user has remapped this physical Channel to a different physical number than it's default on the specified Lineup |
void |
SetChannelMappingForLineup(sage.Channel Channel,
java.lang.String Lineup,
java.lang.String NewNumber)
Maps a channel on a lineup to a new channel number. |
void |
SetChannelMappingsForLineup(sage.Channel Channel,
java.lang.String Lineup,
java.lang.String[] NewNumbers)
Maps a channel on a lineup to a new channel number(s). |
void |
SetChannelViewabilityForChannelNumberOnLineup(sage.Channel Channel,
java.lang.String ChannelNumber,
java.lang.String Lineup,
boolean Viewable)
Sets whether or not the specified Channel is viewable on the specified number on the specified Lineup |
void |
SetChannelViewabilityForChannelOnLineup(sage.Channel Channel,
java.lang.String Lineup,
boolean Viewable)
Sets whether or not the specified Channel is viewable on the specified Lineup. |
void |
SetPhysicalChannelMappingForLineup(sage.Channel Channel,
java.lang.String Lineup,
java.lang.String NewNumber)
Maps a Channel on a lineup to a new physical channel number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String GetChannelDescription(sage.Channel Channel)
Channel - the Channel Object
public java.lang.String GetChannelName(sage.Channel Channel)
Channel - the Channel Object
public java.lang.String GetChannelNetwork(sage.Channel Channel)
Channel - the Channel Object
public java.lang.String GetChannelNumber(sage.Channel Channel)
Channel - the Channel Object
public java.lang.String GetChannelNumberForLineup(sage.Channel Channel,
java.lang.String Lineup)
Channel - the Channel objectLineup - the name of the Lineup
public java.lang.String GetPhysicalChannelNumberForLineup(sage.Channel Channel,
java.lang.String Lineup)
Channel - the Channel objectLineup - the name of the Lineup
public boolean IsChannelViewable(sage.Channel Channel)
Channel - the Channel object
public boolean IsChannelViewableOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Channel - the Channel objectLineup - the name of the Lineup
public boolean IsChannelViewableOnNumberOnLineup(sage.Channel Channel,
java.lang.String ChannelNumber,
java.lang.String Lineup)
Channel - the Channel objectChannelNumber - the channel number to checkLineup - the name of the Lineup
public java.lang.String[] GetChannelNumbersForLineup(sage.Channel Channel,
java.lang.String Lineup)
Channel - the Channel objectLineup - the name of the Lineup
public void ClearChannelMappingOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Channel - the Channel objectLineup - the name of the Lineup
public boolean IsChannelRemappedOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Channel - the Channel objectLineup - the name of the Lineup
public void SetChannelMappingForLineup(sage.Channel Channel,
java.lang.String Lineup,
java.lang.String NewNumber)
Channel - the Channel objectLineup - the name of the LineupNewNumber - the new channel number to use for this Channel
public void SetChannelMappingsForLineup(sage.Channel Channel,
java.lang.String Lineup,
java.lang.String[] NewNumbers)
Channel - the Channel objectLineup - the name of the LineupNewNumbers - the new channel numbers to use for this Channel
public void ClearPhysicalChannelMappingsOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Channel - the Channel objectLineup - the name of the Lineup
public boolean IsPhysicalChannelRemappedOnLineup(sage.Channel Channel,
java.lang.String Lineup)
Channel - the Channel objectLineup - the name of the Lineup
public void SetPhysicalChannelMappingForLineup(sage.Channel Channel,
java.lang.String Lineup,
java.lang.String NewNumber)
Channel - the Channel objectLineup - the name of the LineupNewNumber - the new phyical channel number to use for this Channelpublic int GetStationID(sage.Channel Channel)
GetChannelForStationID() for doing keyed lookups of Channel objects
Channel - the Channel object
public sage.MetaImage GetChannelLogo(sage.Channel Channel)
Channel - the Channel object
public boolean IsChannelObject(sage.Channel Channel)
Channel - the object to test
public void SetChannelViewabilityForChannelNumberOnLineup(sage.Channel Channel,
java.lang.String ChannelNumber,
java.lang.String Lineup,
boolean Viewable)
Channel - the Channel objectChannelNumber - the channel number to set the viewability state forLineup - the name of the LineupViewable - true if is viewable, false if it is not
public void SetChannelViewabilityForChannelOnLineup(sage.Channel Channel,
java.lang.String Lineup,
boolean Viewable)
Channel - the Channel objectLineup - the name of the LineupViewable - true if is viewable, false if it is notpublic sage.Channel GetChannelForStationID(int StationID)
GetStationID()
StationID - the station ID to look up
public sage.Channel AddChannel(java.lang.String CallSign,
java.lang.String Name,
java.lang.String Network,
int StationID)
CallSign - the 'Name' to assign to the new ChannelName - the 'Description' to assign to the new ChannelNetwork - the 'Network' that the Channel is part of (can be "")StationID - the unique ID to give to this Channel
public sage.Channel[] GetAllChannels()
|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||