All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class calypso.services.tv.TVAgent

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteObject
                           |
                           +----calypso.services.tv.TVAgent

public class TVAgent
extends UnicastRemoteObject
implements ControlTV
TVAgent class that handles the controls of a single viewer application.

Author:
Juha Pääjärvi, Olli-Pekka Auvinen / TCM laboratory / HUT

Constructor Index

 o TVAgent(InetAddress)
Constructor definition for TVAgent.

Method Index

 o changeChannel(String)
The changeChannel changes channels on the basis of the channel name.
 o closeAgent()
The TVAgent's closing method.
 o getChannelList()
The getChannelList method gets the list of all channels.
 o getPVCAddr()
The getPVCAddr access method.
 o removeClientFromConnection()
Removes client from the MCConnection of the current channel
 o removeCurrentChannel(String)
If the client is watching the channel to be removed, set currentChannel to null

Constructors

 o TVAgent
 public TVAgent(InetAddress clientIP_) throws SwitchException, RemoteException
Constructor definition for TVAgent.

Parameters:
clientIP_ - The IP address of the client holding the viewer.
Throws: SwitchException
Client not found in routing table.
Throws: RemoteException
Something wrong with the remote interface access.

Methods

 o getChannelList
 public String[] getChannelList() throws RemoteException
The getChannelList method gets the list of all channels.

Returns:
An array of Strings holding the channel names.
Throws: RemoteException
Something wrong with the remote interface access.
 o removeClientFromConnection
 public void removeClientFromConnection() throws RemoteException
Removes client from the MCConnection of the current channel

 o changeChannel
 public boolean changeChannel(String channelName_) throws RemoteException
The changeChannel changes channels on the basis of the channel name.

Parameters:
channelName_ - The name of the new channel.
Returns:
True if the change succeeded, otherwise false.
Throws: RemoteException
Something wrong with the remote interface access.
 o removeCurrentChannel
 protected void removeCurrentChannel(String name_)
If the client is watching the channel to be removed, set currentChannel to null

Parameters:
name_ - The name of the channel to be removed
 o getPVCAddr
 public int[] getPVCAddr() throws RemoteException
The getPVCAddr access method.

Returns:
The array holding the PVC address.
Throws: RemoteException
Something wrong with the remote interface access.
 o closeAgent
 public void closeAgent() throws RemoteException
The TVAgent's closing method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index