jmri.jmrix.can.adapters.gridconnect.canrs.serialdriver
Class SerialDriverAdapter
java.lang.Object
jmri.jmrix.AbstractPortController
jmri.jmrix.AbstractSerialPortController
jmri.jmrix.can.adapters.gridconnect.GcPortController
jmri.jmrix.can.adapters.gridconnect.GcSerialDriverAdapter
jmri.jmrix.can.adapters.gridconnect.canrs.serialdriver.SerialDriverAdapter
- All Implemented Interfaces:
- PortAdapter, SerialPortAdapter
public class SerialDriverAdapter
- extends GcSerialDriverAdapter
- implements SerialPortAdapter
Implements SerialPortAdapter for the MERG CAN-RS or CAN-USB.
This connects to the MERG adapter via a serial com port
(real or virtual).
Normally controlled by the SerialDriverFrame class.
- Author:
- Andrew Crosland Copyright (C) 2008, Bob Jacobsen Copyright (C) 2009
| Methods inherited from class jmri.jmrix.can.adapters.gridconnect.GcSerialDriverAdapter |
configureOption1, configureOption2, getCurrentOption1Setting, getCurrentOption2Setting, getInputStream, getManufacturer, getOutputStream, openPort, option1Name, setManufacturer, status, validBaudRates, validBaudValues, validOption1 |
| Methods inherited from class jmri.jmrix.AbstractSerialPortController |
configureBaudRate, currentBaudNumber, dispose, getCurrentBaudRate, getCurrentPortName, getPortNames, getSystemConnectionMemo, handlePortBusy, handlePortNotFound, setDisabled, setPort, validBaudNumber |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.jmrix.SerialPortAdapter |
configureBaudRate, configureOption1, configureOption2, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, getManufacturer, getPortNames, handlePortBusy, openPort, option1Name, setManufacturer, setPort, status, validBaudRates, validOption1 |
SerialDriverAdapter
public SerialDriverAdapter()
configure
public void configure()
- set up all of the other objects to operate with a CAN RS adapter
connected to this port
- Specified by:
configure in interface PortAdapter- Specified by:
configure in interface SerialPortAdapter- Overrides:
configure in class GcSerialDriverAdapter
validOption2
public String[] validOption2()
- Option 2 is CAN identifier to be used by adapter
- Specified by:
validOption2 in interface PortAdapter- Specified by:
validOption2 in interface SerialPortAdapter- Overrides:
validOption2 in class GcSerialDriverAdapter
option2Name
public String option2Name()
- Get a String that says what Option 2 represents
May be an empty string, but will not be null
- Specified by:
option2Name in interface PortAdapter- Specified by:
option2Name in interface SerialPortAdapter- Overrides:
option2Name in class GcSerialDriverAdapter
instance
public static SerialDriverAdapter instance()
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: