All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class calypso.clients.tv.ChannelSelection

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----calypso.clients.tv.ChannelSelection

public class ChannelSelection
extends Frame
Class for window including user-oriented information about tv service. It also provides access to remote object through which the channels are changed and requested.

Author:
Olli-Pekka Auvinen / TCM laboratory / HUT
See Also:
Viewer, InitTVAgent, ControlTV

Variable Index

 o channelIndex
An array of channel names.
 o channelList
The awt List object for names of the channels.
 o channelName
The awt TextField object for the name of the current channel.
 o controlPort
 o forwarderProcess
The Process object for mpeg forwarding process.
 o listOfChannels
A distinct window holding the channel list.
 o listOn
Check variable to indicate if the channel list window is on.
 o MAX_CHANNEL_NUM
Maximum allowed number of channels in viewer application.
 o maxChannels
Number of channels available
 o rmiHost
 o rmiPort
 o tvAgent
The remote interface of the tv agent.

Constructor Index

 o ChannelSelection(String, String, int)
The ChannelSelection constructor.

Method Index

 o changeChannel(int)
The changeChannel method.
 o channelDown()
The channelDown method decrements the number of channel by one.
 o channelFrame()
The channelFrame which causes a new window with the channel list to open.
 o channelUp()
The channelUp method increments the number of channel by one.
 o close()
The close method takes care of exiting the tv service client application.
 o finalize()
The finalization method for deallocating member variables.
 o open()

Variables

 o channelList
 protected List channelList
The awt List object for names of the channels.

 o channelName
 protected TextField channelName
The awt TextField object for the name of the current channel.

 o forwarderProcess
 protected Process forwarderProcess
The Process object for mpeg forwarding process.

 o tvAgent
 protected ControlTV tvAgent
The remote interface of the tv agent.

 o channelIndex
 protected String channelIndex[]
An array of channel names.

 o listOfChannels
 protected ChannelWindow listOfChannels
A distinct window holding the channel list.

 o listOn
 protected boolean listOn
Check variable to indicate if the channel list window is on.

 o maxChannels
 protected int maxChannels
Number of channels available

 o rmiHost
 protected String rmiHost
 o rmiPort
 protected int rmiPort
 o controlPort
 protected String controlPort
 o MAX_CHANNEL_NUM
 protected static final int MAX_CHANNEL_NUM
Maximum allowed number of channels in viewer application.

Constructors

 o ChannelSelection
 public ChannelSelection(String host_,
                         String ctrlPort_,
                         int registryPort_)
The ChannelSelection constructor. The constructor takes care of creating a window that holds the information which channel is being shown (if any). The object contains the data structures holding the channel names of all the channels which are remotely requested from the tv service agent.

Parameters:
host_ - The name of the tv service agent host.
registryPort_ - RMI registration port on the service agent host.
forwarderProcess_ - The mpeg stream forwarding process.

Methods

 o open
 public void open()
 o changeChannel
 public void changeChannel(int newChannel_)
The changeChannel method.

Parameters:
newChannel_ - A channel to change the current channel.
 o channelUp
 public void channelUp()
The channelUp method increments the number of channel by one.

 o channelDown
 public void channelDown()
The channelDown method decrements the number of channel by one.

 o channelFrame
 public void channelFrame()
The channelFrame which causes a new window with the channel list to open. Executes only if the window isn't already open.

 o close
 public void close()
The close method takes care of exiting the tv service client application. The MPEG forwarding process is exited too.

 o finalize
 public void finalize()
The finalization method for deallocating member variables.

Overrides:
finalize in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index