|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractPortController
jmri.jmrix.loconet.LnPortController
public abstract class LnPortController
Base for classes representing a LocoNet communications port
| Field Summary | |
|---|---|
protected String |
commandStationName
|
protected String[] |
commandStationNames
|
protected boolean |
mCanRead
|
protected boolean |
mProgPowersOff
|
| Fields inherited from class jmri.jmrix.AbstractPortController |
|---|
log, mBaudRate, mOpt1, mOpt2, mPort |
| Constructor Summary | |
|---|---|
LnPortController()
|
|
| Method Summary | |
|---|---|
static void |
configureCommandStation(boolean mCanRead,
boolean mProgPowersOff,
String name)
Configure the programming manager and "command station" objects |
static void |
configureManagers()
Configure the common managers for LocoNet connections. |
abstract DataInputStream |
getInputStream()
|
abstract DataOutputStream |
getOutputStream()
|
boolean |
okToSend()
Can the port accept additional characters? |
void |
setCommandStationType(String value)
Set config info from the command station type name. |
abstract boolean |
status()
Check that this object is ready to operate. |
| Methods inherited from class jmri.jmrix.AbstractPortController |
|---|
configureBaudRate, configureOption1, configureOption2, currentBaudNumber, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, handlePortBusy, handlePortNotFound, option1Name, option2Name, setPort, validBaudNumber, validOption1, validOption2 |
| 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 |
|---|
configure, getPortNames, openPort, validBaudRates |
| Field Detail |
|---|
protected boolean mCanRead
protected boolean mProgPowersOff
protected String commandStationName
protected String[] commandStationNames
| Constructor Detail |
|---|
public LnPortController()
| Method Detail |
|---|
public abstract DataInputStream getInputStream()
getInputStream in class AbstractPortControllerpublic abstract DataOutputStream getOutputStream()
getOutputStream in class AbstractPortControllerpublic abstract boolean status()
status in interface PortAdapterstatus in interface SerialPortAdapterstatus in class AbstractPortControllerpublic boolean okToSend()
Provide a default implementation for the MS100, etc, in which this is _always_ true, as we rely on the queueing in the port itself.
public void setCommandStationType(String value)
public static void configureCommandStation(boolean mCanRead,
boolean mProgPowersOff,
String name)
mCanRead - mProgPowersOff - name - Command station type namepublic static void configureManagers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||