use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.
the class ZTC611XNetInitializationManagerTest method testCtor.
public void testCtor() {
// infrastructure objects
XNetInterfaceScaffold t = new XNetInterfaceScaffold(new LenzCommandStation());
XNetListenerScaffold l = new XNetListenerScaffold();
XNetSystemConnectionMemo memo = new XNetSystemConnectionMemo(t);
ZTC611XNetInitializationManager m = new ZTC611XNetInitializationManager(memo) {
@Override
protected int getInitTimeout() {
// shorten, because this will fail & delay test
return 50;
}
};
Assert.assertNotNull("exists", t);
Assert.assertNotNull("exists", l);
Assert.assertNotNull("exists", m);
Assert.assertNotNull("exists", memo);
}
use of jmri.jmrix.lenz.LenzCommandStation 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.LenzCommandStation 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());
}
use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.
the class LI100Adapter method configure.
/**
* set up all of the other objects to operate with a LI100 connected to this
* port
*/
@Override
public void configure() {
// connect to a packetizing traffic controller
XNetTrafficController packets = new LI100XNetPacketizer(new LenzCommandStation());
packets.connectPort(this);
// start operation
// packets.startThreads();
this.getSystemConnectionMemo().setXNetTrafficController(packets);
new LI100XNetInitializationManager(this.getSystemConnectionMemo());
}
use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.
the class LI100Adapter method configure.
/**
* set up all of the other objects to operate with a LI100 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);
new XNetInitializationManager(this.getSystemConnectionMemo());
}
Aggregations