All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class calypso.services.tv.ChannelServer

java.lang.Object
   |
   +----calypso.services.tv.ChannelServer

public class ChannelServer
extends Object
implements Serializable
Server holding the names of the received channels.

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

Variable Index

 o MAX_CHANNEL_SDU
The constant holds the maximum service data unit of the transmission medium of the multicasted TV channel.

Constructor Index

 o ChannelServer()
The constructor definition of ChannelServer class.

Method Index

 o addAgent(ControlTV)
Adds a new TV agent to the vector of agents
 o addChannel(String, InetAddress, boolean, float, String)
Adds a new channel
 o getChannel(String)
The getChannel method definition.
 o getChannels()
The getChannels method definition.
 o removeAgent(ControlTV)
Removes a reference to an agent from the ChannelServer
 o removeChannel(String)
Removes a channel

Variables

 o MAX_CHANNEL_SDU
 public static final int MAX_CHANNEL_SDU
The constant holds the maximum service data unit of the transmission medium of the multicasted TV channel.

Constructors

 o ChannelServer
 public ChannelServer()
The constructor definition of ChannelServer class.

Methods

 o addChannel
 public void addChannel(String name_,
                        InetAddress senderIP_,
                        boolean payChannel_,
                        float feePerHour_,
                        String passwd_)
Adds a new channel

Parameters:
name_ - Name of the new channel to be added
senderIP_ - IP address of the server providing with the new channel
payChannel_ - true if channel is not free of charge
 o removeChannel
 public void removeChannel(String name_)
Removes a channel

Parameters:
name_ - Name of the channel to be removed
 o addAgent
 public void addAgent(ControlTV agent_)
Adds a new TV agent to the vector of agents

Parameters:
agent - The tv agent to be added
 o removeAgent
 public void removeAgent(ControlTV agent_)
Removes a reference to an agent from the ChannelServer

Parameters:
agent_ - The agent to be removed
 o getChannels
 public String[] getChannels()
The getChannels method definition.

Returns:
An array of Strings holding the current channels.
 o getChannel
 public Channel getChannel(String channelName_)
The getChannel method definition.

Parameters:
channelName_ - The name String of the Channel to be returned.
Returns:
The Channel object corresponding to the given argument.

All Packages  Class Hierarchy  This Package  Previous  Next  Index