Author: ygrego Date: 2015-02-23 10:42:09 +0000 (Mon, 23 Feb 2015) New Revision: 854 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/854 Log: Addition of a parameter at the instanciation of a "Channel" object. Modified: oipf/js/impl/model/Channel.js Modified: oipf/js/impl/model/Channel.js =================================================================== --- oipf/js/impl/model/Channel.js 2015-02-23 10:36:32 UTC (rev 853) +++ oipf/js/impl/model/Channel.js 2015-02-23 10:42:09 UTC (rev 854) @@ -1,72 +1,68 @@ /* -* Description: -* The Channel object represents a broadcast stream or service. -* Channel objects typically represent channels stored in the channel list (see section 7.13.10). Channel objects may also -* represent locally defined channels created by an application using the createChannelObject() methods on the -* video/broadcast embedded object or the ChannelConfig class or the createChannelList() method on the -* ChannelConfig class. Accessing the channel property of a ScheduledRecording object or Recording object -* which is scheduled on a locally defined channel SHALL return a Channel object representing that locally defined -* channel. -* Except for the hidden property, writing to the writable properties on a Channel object SHALL have no effect for -* Channel objects representing channels stored in the channel list. Applications SHOULD only change these writable -* properties of a locally defined channel before the Channel object is referenced by another object or passed to an API -* call as an input parameter. The effects of writing to these properties at any other time is implementation dependent. -* The LocalSystem object allows hardware settings related to the local device to be read and modified. -* -* Note: The standbyState property has been removed from this class. -*/ + * Description: + * The Channel object represents a broadcast stream or service. + * Channel objects typically represent channels stored in the channel list (see section 7.13.10). Channel objects may also + * represent locally defined channels created by an application using the createChannelObject() methods on the + * video/broadcast embedded object or the ChannelConfig class or the createChannelList() method on the + * ChannelConfig class. Accessing the channel property of a ScheduledRecording object or Recording object + * which is scheduled on a locally defined channel SHALL return a Channel object representing that locally defined + * channel. + * Except for the hidden property, writing to the writable properties on a Channel object SHALL have no effect for + * Channel objects representing channels stored in the channel list. Applications SHOULD only change these writable + * properties of a locally defined channel before the Channel object is referenced by another object or passed to an API + * call as an input parameter. The effects of writing to these properties at any other time is implementation dependent. + * The LocalSystem object allows hardware settings related to the local device to be read and modified. + * + * Note: The standbyState property has been removed from this class. + */ var Channel = Class.extend({ - /* - * Description: - * The type of channel. The value MAY be indicated by one of the TYPE_* constants defined above. If the - * type of the channel is unknown then the value SHALL be “ undefined ”. - * NOTE: Values of this type between 256 and 511 are reserved for use by related specifications on request by - * liaison. - * - * Visibility Type: readonly Integer - */ + * Description: + * The type of channel. The value MAY be indicated by one of the TYPE_* constants defined above. If the + * type of the channel is unknown then the value SHALL be “ undefined ”. + * NOTE: Values of this type between 256 and 511 are reserved for use by related specifications on request by + * liaison. + * + * Visibility Type: readonly Integer + */ channelType: null, - /* - * Description: - * The type of identification for the channel, as indicated by one of the ID_* constants defined above. - * - * Visibility Type: readonly Integer - */ + * Description: + * The type of identification for the channel, as indicated by one of the ID_* constants defined above. + * + * Visibility Type: readonly Integer + */ idType: null, - /* - * Description: - * Unique identifier of a channel within the scope of the OITF. The ccid is defined by the OITF and SHALL have - * prefix ‘ ccid ’ : e.g. ‘ccid:{tunerID.}majorChannel{.minorChannel}’. - * - * Note: the format of this string is platform-dependent. - * - * Visibility Type: readonly String - */ + * Description: + * Unique identifier of a channel within the scope of the OITF. The ccid is defined by the OITF and SHALL have + * prefix ‘ ccid ’ : e.g. ‘ccid:{tunerID.}majorChannel{.minorChannel}’. + * + * Note: the format of this string is platform-dependent. + * + * Visibility Type: readonly String + */ ccid: null, - /* - * Description: - * The name of the channel. Can be used for linking analog channels without CNI. Typically, it will contain the - * call sign of the station (e.g. 'HBO'). - * - * Type: String - */ + * Description: + * The name of the channel. Can be used for linking analog channels without CNI. Typically, it will contain the + * call sign of the station (e.g. 'HBO'). + * + * Type: String + */ name: null, - /* - * Description: - * Optional unique identifier of the tuner within the scope of the OITF that is able to receive the given channel. - * - * Visibility Type: readonly String - */ + * Description: + * Optional unique identifier of the tuner within the scope of the OITF that is able to receive the given channel. + * + * Visibility Type: readonly String + */ tunerID: null, - init: function(name , channelType) { + init: function (name, channelType, ccid) { this.name = name; this.channelType = CHANNEL_CONSTANT[channelType]; + this.ccid = ccid; } }); \ No newline at end of file