serial
Class SerialMux

java.lang.Object
  |
  +--serial.SerialMux

public class SerialMux
extends Object

The SerialMux class is designed to control the Multiplexer, which recieves commands through a serial port and relays and duplicates video signals.


Constructor Summary
SerialMux()
           
 
Method Summary
 void close()
          Closes the port.
 void connect(int i, int o)
           
 void connect(String i, String o)
           
 void disconnect(String o)
           
 int findInput(String name)
           
 int findOutput(String name)
           
 String inputName(int num)
           
 Enumeration inputs()
           
 String[] inputStatus(String inp)
           
 void loadCfg(InputStream cfg)
           
 void loadData(InputStream data)
           
static void main(String[] args)
          Used for standalone debugging and hardware tests.
 void nameInput(int num, String name)
           
 void nameOutput(int num, String name)
           
 void open(String in_device)
          Connects this object with a device.
 void open(String in_device, InputStream fdata, InputStream fcfg)
          Connects this object with a device.
 String outputName(int num)
           
 Enumeration outputs()
           
 String[] outputStatus(String outp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialMux

public SerialMux()
Method Detail

open

public void open(String in_device)
          throws IOException,
                 javax.comm.PortInUseException,
                 javax.comm.NoSuchPortException
Connects this object with a device.
Parameters:
in_device - the name of the serial device to speak to. (e.g. "/dev/ttyre")

open

public void open(String in_device,
                 InputStream fdata,
                 InputStream fcfg)
          throws IOException,
                 javax.comm.NoSuchPortException,
                 javax.comm.PortInUseException
Connects this object with a device.
Parameters:
in_device - the name of the serial device to speak to. (e.g. "/dev/ttyre")

inputs

public Enumeration inputs()

outputs

public Enumeration outputs()

inputName

public String inputName(int num)

outputName

public String outputName(int num)

nameInput

public void nameInput(int num,
                      String name)

nameOutput

public void nameOutput(int num,
                       String name)

findInput

public int findInput(String name)
              throws NoSuchElementException

findOutput

public int findOutput(String name)
               throws NoSuchElementException

loadData

public void loadData(InputStream data)
              throws IOException

loadCfg

public void loadCfg(InputStream cfg)
             throws IOException

connect

public void connect(String i,
                    String o)
             throws NoSuchElementException,
                    IOException

disconnect

public void disconnect(String o)
                throws NoSuchElementException,
                       IOException

inputStatus

public String[] inputStatus(String inp)
                     throws NoSuchElementException,
                            IOException

outputStatus

public String[] outputStatus(String outp)
                      throws NoSuchElementException,
                             IOException

connect

public void connect(int i,
                    int o)
             throws IOException

close

public void close()
           throws IOException
Closes the port.

main

public static void main(String[] args)
Used for standalone debugging and hardware tests.