serial
Class CrossPointMux

java.lang.Object
  |
  +--serial.Serial
        |
        +--serial.CrossPointMux

public class CrossPointMux
extends Serial

This is a software controller for the Cross Point mux -- at the moment I am implementing only video commands (the cross point communication protocol supports commands for muxing audio as well but our mux does not do it so we can fill in the rest when we need it)

See Also:
Serial

Fields inherited from class serial.Serial
answerTimeout, cancelEcho, device, listener, semaphore, serial, serial_in, serial_out, timeout_wait, waitingForResponse
 
Constructor Summary
CrossPointMux()
           
 
Method Summary
 boolean connect(int in, int out)
           
 int getVideoOutputTie(int out)
          Returns the number of input tied to the specified output
 void open(String in_device)
          Opens connection to a CrossPoint controller on a given port and sets default parameters for that port
 
Methods inherited from class serial.Serial
addEventListener, close, getNewInstance, main, open, open, openNoParams, processSerialEvent, read, readBytes, readString, ready, send, send, sendSynch, sendSynch, sendSynch, serialEvent, setFlowControlMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossPointMux

public CrossPointMux()
Method Detail

open

public void open(String in_device)
          throws javax.comm.NoSuchPortException,
                 javax.comm.PortInUseException,
                 IOException
Opens connection to a CrossPoint controller on a given port and sets default parameters for that port
Overrides:
open in class Serial
Tags copied from class: Serial
Parameters:
in_device - the name of the serial device to speak to. Uses standard port settings. (e.g. "/dev/term/ttyrg" DONT FORGET ABOUT TERM)

connect

public boolean connect(int in,
                       int out)

getVideoOutputTie

public int getVideoOutputTie(int out)
Returns the number of input tied to the specified output
Parameters:
out - output to be checked
Returns:
input number that is connected to that output or -1 if anything went wrong