All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class calypso.clients.tv.RemoteControlUser

java.lang.Object
   |
   +----calypso.clients.tv.RemoteControlUser

public class RemoteControlUser
extends Object
implements RemoteControlListener
Class for implementing the RemoteControlListener interface.

Author:
Olli-Pekka Auvinen / TCM laboratory / HUT

Variable Index

 o ccActive
Is the ChannelSelection object active?
 o channelControls
Reference to the ChannelSelection object that allows changing channel.
 o command
Variable holding command string of the last RemoteControlKeyDownEvent.
 o ctrlPack1
The DatagramPacket object for control message communicating.
 o ctrlPack2
The DatagramPacket object for control message communicating.
 o ctrlSocket
The DatagramSocket object through which the control messages are sent.
 o lastPressed
Variable holding the information of the type of the key last pressed.
 o NORMAL_PRESSED
Identifier for normal key pressing.
 o RECV_BUF_LEN
The buffer length for received control messages.
 o recvCtrlBuffer
The buffer for receiving control messages.
 o SEND_BUF_LEN
The buffer length for transmitted control messages.
 o sendCtrlBuffer
The buffer for transmitting control messages.
 o state
Variable holding state of the last RemoteControlStateEvent.
 o TEN_PRESSED
Identifier for 10+ key pressing.
 o TWENTY_PRESSED
Identifier for 20+ key pressing.

Constructor Index

 o RemoteControlUser(String, int, ChannelSelection)
The constructor for ControlMessageReceiver.

Method Index

 o remoteControlKeyDown(RemoteControlKeyDownEvent)
The remoteControlKeyDown method.
 o remoteControlState(RemoteControlStateEvent)
The remoteControlState method.
 o sendCtrlMsg(CtrlMessage)
The sendCtrlMsg method.

Variables

 o ctrlSocket
 protected DatagramSocket ctrlSocket
The DatagramSocket object through which the control messages are sent.

 o ctrlPack1
 protected DatagramPacket ctrlPack1
The DatagramPacket object for control message communicating.

 o ctrlPack2
 protected DatagramPacket ctrlPack2
The DatagramPacket object for control message communicating.

 o recvCtrlBuffer
 protected byte recvCtrlBuffer[]
The buffer for receiving control messages.

 o sendCtrlBuffer
 protected byte sendCtrlBuffer[]
The buffer for transmitting control messages.

 o lastPressed
 protected int lastPressed
Variable holding the information of the type of the key last pressed.

 o command
 protected String command
Variable holding command string of the last RemoteControlKeyDownEvent.

 o state
 protected int state
Variable holding state of the last RemoteControlStateEvent.

 o channelControls
 protected ChannelSelection channelControls
Reference to the ChannelSelection object that allows changing channel.

 o ccActive
 protected boolean ccActive
Is the ChannelSelection object active?

 o RECV_BUF_LEN
 public static final int RECV_BUF_LEN
The buffer length for received control messages.

 o SEND_BUF_LEN
 public static final int SEND_BUF_LEN
The buffer length for transmitted control messages.

 o NORMAL_PRESSED
 protected static final int NORMAL_PRESSED
Identifier for normal key pressing.

 o TEN_PRESSED
 protected static final int TEN_PRESSED
Identifier for 10+ key pressing.

 o TWENTY_PRESSED
 protected static final int TWENTY_PRESSED
Identifier for 20+ key pressing.

Constructors

 o RemoteControlUser
 public RemoteControlUser(String hostName_,
                          int port_,
                          ChannelSelection channelControls_)
The constructor for ControlMessageReceiver.

Parameters:
hostName_ - Viewer application host name.
port_ - Viewer application control port.
channelControls_ - Window holding channel information.

Methods

 o remoteControlKeyDown
 public synchronized void remoteControlKeyDown(RemoteControlKeyDownEvent rce_)
The remoteControlKeyDown method. The method interprets the received events and invokes the actual control methods concerning the tv parameters like: current channel and volume level.

Parameters:
rce_ - Received RemoteControlKeyDownEvent.
 o remoteControlState
 public synchronized void remoteControlState(RemoteControlStateEvent rcs_)
The remoteControlState method. Default state is TV altered by pressing the TV/VCR button.

Parameters:
rcs_ - Received RemoteControlStateEvent.
 o sendCtrlMsg
 protected void sendCtrlMsg(CtrlMessage msg)
The sendCtrlMsg method. Sends control messages to the mpg forwarder.

Parameters:
msg - Control message instance to be sent.

All Packages  Class Hierarchy  This Package  Previous  Next  Index