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
-
TVAgent(InetAddress)
- Constructor definition for TVAgent.
-
changeChannel(String)
- The changeChannel changes channels on the basis of the channel name.
-
closeAgent()
- The TVAgent's closing method.
-
getChannelList()
- The getChannelList method gets the list of all channels.
-
getPVCAddr()
- The getPVCAddr access method.
-
removeClientFromConnection()
- Removes client from the MCConnection of the current channel
-
removeCurrentChannel(String)
- If the client is watching the channel to be removed, set currentChannel
to null
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.
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.
removeClientFromConnection
public void removeClientFromConnection() throws RemoteException
- Removes client from the MCConnection of the current channel
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.
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
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.
closeAgent
public void closeAgent() throws RemoteException
- The TVAgent's closing method.
All Packages Class Hierarchy This Package Previous Next Index