use of jmri.jmrix.loconet.LnPacketizer in project JMRI by JMRI.
the class LocoBufferAdapter method configure.
/**
* Set up all of the other objects to operate with a LocoBuffer connected to
* this port.
*/
@Override
public void configure() {
setCommandStationType(getOptionState(option2Name));
setTurnoutHandling(getOptionState(option3Name));
// connect to a packetizing traffic controller
LnPacketizer packets = new LnPacketizer();
packets.connectPort(this);
// create memo
this.getSystemConnectionMemo().setLnTrafficController(packets);
// do the common manager config
this.getSystemConnectionMemo().configureCommandStation(commandStationType, mTurnoutNoRetry, mTurnoutExtraSpace);
this.getSystemConnectionMemo().configureManagers();
// start operation
packets.startThreads();
}
Aggregations