Package jmri.jmrix.loconet.pr2
Class LnPr2Packetizer
- java.lang.Object
-
- jmri.jmrix.loconet.LnTrafficController
-
- jmri.jmrix.loconet.LnPacketizer
-
- jmri.jmrix.loconet.pr2.LnPr2Packetizer
-
- All Implemented Interfaces:
LocoNetInterface
public class LnPr2Packetizer extends LnPacketizer
Special LnPr2Packetizer implementation for PR2. Differs only in handling PR2's non-echo.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrix.loconet.LnPacketizer
LnPacketizer.RcvHandler
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.loconet.LnPacketizer
controller, echo, istream, ostream, rcvHandler, rcvThread, threadStopRequest, xmtHandler, xmtList, xmtThread
-
Fields inherited from class jmri.jmrix.loconet.LnTrafficController
listeners, receivedByteCount, receivedMsgCount, transmittedMsgCount
-
Fields inherited from interface jmri.jmrix.loconet.LocoNetInterface
ALL, POWER, PROGRAMMING, SENSORS, SLOTINFO, TURNOUTS
-
-
Constructor Summary
Constructors Constructor Description LnPr2Packetizer()
LnPr2Packetizer(LocoNetSystemConnectionMemo memo)
Create a Packetizer against an existing LocoNetSystemConnectionMemo.
-
Method Summary
-
Methods inherited from class jmri.jmrix.loconet.LnPacketizer
connectPort, disconnectPort, dispose, isXmtBusy, messageTransmitted, readByteProtected, sendLocoNetMessage, startThreads, status, terminateThreads
-
Methods inherited from class jmri.jmrix.loconet.LnTrafficController
addLocoNetListener, getReceivedByteCount, getReceivedMsgCount, getSystemConnectionMemo, getTransmittedMsgCount, notify, removeLocoNetListener, resetStatistics, setSystemConnectionMemo
-
-
-
-
Constructor Detail
-
LnPr2Packetizer
public LnPr2Packetizer()
-
LnPr2Packetizer
public LnPr2Packetizer(LocoNetSystemConnectionMemo memo)
Create a Packetizer against an existing LocoNetSystemConnectionMemo.This allows for re-configuring an existing LocoNetSystemConnectionMemo, which was created during PR3Adapter initialization, for use in the PR3's "PR2 Mode" (i.e. "Standalone Programmer Mode".)
- Parameters:
memo
- pre-existing LocoNetSystemConnectionMemo
-
-