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
-
MAX_CHANNEL_SDU
- The constant holds the maximum service data unit of the transmission
medium of the multicasted TV channel.
-
ChannelServer()
- The constructor definition of ChannelServer class.
-
addAgent(ControlTV)
- Adds a new TV agent to the vector of agents
-
addChannel(String, InetAddress, boolean, float, String)
- Adds a new channel
-
getChannel(String)
- The getChannel method definition.
-
getChannels()
- The getChannels method definition.
-
removeAgent(ControlTV)
- Removes a reference to an agent from the ChannelServer
-
removeChannel(String)
- Removes a channel
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.
ChannelServer
public ChannelServer()
- The constructor definition of ChannelServer class.
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
removeChannel
public void removeChannel(String name_)
- Removes a channel
- Parameters:
- name_ - Name of the channel to be removed
addAgent
public void addAgent(ControlTV agent_)
- Adds a new TV agent to the vector of agents
- Parameters:
- agent - The tv agent to be added
removeAgent
public void removeAgent(ControlTV agent_)
- Removes a reference to an agent from the ChannelServer
- Parameters:
- agent_ - The agent to be removed
getChannels
public String[] getChannels()
- The getChannels method definition.
- Returns:
- An array of Strings holding the current channels.
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