autohit.common.channels
Class Controller

java.lang.Object
  extended byautohit.common.channels.Controller

public class Controller
extends java.lang.Object

Channel controller. This controller assumes the hashtable provides enough thread safety. I'll get fancy in the future.

Someone, somewhere needs to create an instance of this or the channel system will not work.

Version:
1.0 Version History EPG - Initial - 25Apr03
Author:
Erich P. Gatejen

Constructor Summary
Controller()
          Default constructor
 
Method Summary
static void register(java.lang.String name, Channel ch)
          Register a channel
static void remove(java.lang.String name)
          Remove a channel
static Channel tune(java.lang.String name)
          Tune to a channel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller()
Default constructor

Method Detail

register

public static void register(java.lang.String name,
                            Channel ch)
                     throws ChannelException
Register a channel

Parameters:
name - String name
ch - A channel
Throws:
ChannelException

remove

public static void remove(java.lang.String name)
                   throws ChannelException
Remove a channel

Parameters:
name - String name
Throws:
ChannelException

tune

public static Channel tune(java.lang.String name)
                    throws ChannelException
Tune to a channel

Parameters:
name - String name
Throws:
ChannelException


Test.