use of jmri.jmrix.lenz.XNetInitializationManager in project JMRI by JMRI.
the class ZTC640Adapter method configure.
/**
* set up all of the other objects to operate with a ZTC640 connected to
* this port
*/
@Override
public void configure() {
// connect to a packetizing traffic controller
XNetTrafficController packets = new ZTC640XNetPacketizer(new LenzCommandStation());
packets.connectPort(this);
// start operation
// packets.startThreads();
this.getSystemConnectionMemo().setXNetTrafficController(packets);
new XNetInitializationManager(this.getSystemConnectionMemo());
}
use of jmri.jmrix.lenz.XNetInitializationManager in project JMRI by JMRI.
the class XnTcpAdapter method configure.
/**
* set up all of the other objects to operate with a XnTcp interface
*/
@Override
public void configure() {
// connect to a packetizing traffic controller
XNetTrafficController packets = new XnTcpXNetPacketizer(new LenzCommandStation());
packets.connectPort(this);
this.getSystemConnectionMemo().setXNetTrafficController(packets);
new XNetInitializationManager(this.getSystemConnectionMemo());
}
use of jmri.jmrix.lenz.XNetInitializationManager in project JMRI by JMRI.
the class XNetSimulatorAdapter method configure.
/**
* set up all of the other objects to operate with a XNetSimulator connected
* to this port
*/
@Override
public void configure() {
// connect to a packetizing traffic controller
XNetTrafficController packets = new XNetPacketizer(new LenzCommandStation());
packets.connectPort(this);
// start operation
// packets.startThreads();
this.getSystemConnectionMemo().setXNetTrafficController(packets);
sourceThread = new Thread(this);
sourceThread.start();
new XNetInitializationManager(this.getSystemConnectionMemo());
}
Aggregations