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
-
channelIndex
- An array of channel names.
-
channelList
- The awt List object for names of the channels.
-
channelName
- The awt TextField object for the name of the current channel.
-
controlPort
-
-
forwarderProcess
- The Process object for mpeg forwarding process.
-
listOfChannels
- A distinct window holding the channel list.
-
listOn
- Check variable to indicate if the channel list window is on.
-
MAX_CHANNEL_NUM
- Maximum allowed number of channels in viewer application.
-
maxChannels
- Number of channels available
-
rmiHost
-
-
rmiPort
-
-
tvAgent
- The remote interface of the tv agent.
-
ChannelSelection(String, String, int)
- The ChannelSelection constructor.
-
changeChannel(int)
- The changeChannel method.
-
channelDown()
- The channelDown method decrements the number of channel by one.
-
channelFrame()
- The channelFrame which causes a new window with the channel list to open.
-
channelUp()
- The channelUp method increments the number of channel by one.
-
close()
- The close method takes care of exiting the tv service client application.
-
finalize()
- The finalization method for deallocating member variables.
-
open()
-
channelList
protected List channelList
- The awt List object for names of the channels.
channelName
protected TextField channelName
- The awt TextField object for the name of the current channel.
forwarderProcess
protected Process forwarderProcess
- The Process object for mpeg forwarding process.
tvAgent
protected ControlTV tvAgent
- The remote interface of the tv agent.
channelIndex
protected String channelIndex[]
- An array of channel names.
listOfChannels
protected ChannelWindow listOfChannels
- A distinct window holding the channel list.
listOn
protected boolean listOn
- Check variable to indicate if the channel list window is on.
maxChannels
protected int maxChannels
- Number of channels available
rmiHost
protected String rmiHost
rmiPort
protected int rmiPort
controlPort
protected String controlPort
MAX_CHANNEL_NUM
protected static final int MAX_CHANNEL_NUM
- Maximum allowed number of channels in viewer application.
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.
open
public void open()
changeChannel
public void changeChannel(int newChannel_)
- The changeChannel method.
- Parameters:
- newChannel_ - A channel to change the current channel.
channelUp
public void channelUp()
- The channelUp method increments the number of channel by one.
channelDown
public void channelDown()
- The channelDown method decrements the number of channel by one.
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.
close
public void close()
- The close method takes care of exiting the tv service client application.
The MPEG forwarding process is exited too.
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