Search in sources :

Example 1 with LenzCommandStation

use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.

the class LIUSBServerAdapter method configure.

/**
     * set up all of the other objects to operate with a LIUSB Server interface
     */
@Override
public void configure() {
    if (log.isDebugEnabled()) {
        log.debug("configure called");
    }
    // connect to a packetizing traffic controller
    XNetTrafficController packets = (new LIUSBServerXNetPacketizer(new LenzCommandStation()));
    packets.connectPort(this);
    // start operation
    // packets.startThreads();
    this.getSystemConnectionMemo().setXNetTrafficController(packets);
    // Start the threads that handle the network communication.
    startCommThread();
    startBCastThread();
    new XNetInitializationManager(this.getSystemConnectionMemo());
}
Also used : XNetInitializationManager(jmri.jmrix.lenz.XNetInitializationManager) XNetTrafficController(jmri.jmrix.lenz.XNetTrafficController) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation)

Example 2 with LenzCommandStation

use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.

the class LIUSBEthernetAdapter method configure.

/**
     * set up all of the other objects to operate with a LIUSB Ethernet
     * interface
     */
@Override
public void configure() {
    if (log.isDebugEnabled()) {
        log.debug("configure called");
    }
    // connect to a packetizing traffic controller
    XNetTrafficController packets = (new LIUSBEthernetXNetPacketizer(new LenzCommandStation()));
    packets.connectPort(this);
    // start operation
    // packets.startThreads();
    this.getSystemConnectionMemo().setXNetTrafficController(packets);
    new XNetInitializationManager(this.getSystemConnectionMemo());
}
Also used : XNetInitializationManager(jmri.jmrix.lenz.XNetInitializationManager) XNetTrafficController(jmri.jmrix.lenz.XNetTrafficController) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation)

Example 3 with LenzCommandStation

use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.

the class LIUSBAdapter method configure.

/**
     * set up all of the other objects to operate with a LIUSB connected to this
     * port
     */
@Override
public void configure() {
    // connect to a packetizing traffic controller
    XNetTrafficController packets = new LIUSBXNetPacketizer(new LenzCommandStation());
    packets.connectPort(this);
    // start operation
    // packets.startThreads();
    this.getSystemConnectionMemo().setXNetTrafficController(packets);
    new XNetInitializationManager(this.getSystemConnectionMemo());
}
Also used : XNetInitializationManager(jmri.jmrix.lenz.XNetInitializationManager) XNetTrafficController(jmri.jmrix.lenz.XNetTrafficController) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation)

Example 4 with LenzCommandStation

use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.

the class LI101Adapter method configure.

/**
     * set up all of the other objects to operate with a LI101 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());
}
Also used : XNetInitializationManager(jmri.jmrix.lenz.XNetInitializationManager) XNetPacketizer(jmri.jmrix.lenz.XNetPacketizer) XNetTrafficController(jmri.jmrix.lenz.XNetTrafficController) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation)

Example 5 with LenzCommandStation

use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.

the class ZTC611Adapter method configure.

/**
     * set up all of the other objects to operate with a ZTC611 connected to
     * this port
     */
@Override
public void configure() {
    // connect to a packetizing traffic controller
    XNetTrafficController packets = new ZTC611XNetPacketizer(new LenzCommandStation());
    packets.connectPort(this);
    // start operation
    // packets.startThreads();
    this.getSystemConnectionMemo().setXNetTrafficController(packets);
    new ZTC611XNetInitializationManager(this.getSystemConnectionMemo());
}
Also used : XNetTrafficController(jmri.jmrix.lenz.XNetTrafficController) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation)

Aggregations

LenzCommandStation (jmri.jmrix.lenz.LenzCommandStation)37 XNetInterfaceScaffold (jmri.jmrix.lenz.XNetInterfaceScaffold)26 XNetSystemConnectionMemo (jmri.jmrix.lenz.XNetSystemConnectionMemo)11 XNetReply (jmri.jmrix.lenz.XNetReply)10 XNetTrafficController (jmri.jmrix.lenz.XNetTrafficController)10 XNetInitializationManager (jmri.jmrix.lenz.XNetInitializationManager)8 Test (org.junit.Test)8 Before (org.junit.Before)6 XNetListenerScaffold (jmri.jmrix.lenz.XNetListenerScaffold)3 XNetPacketizer (jmri.jmrix.lenz.XNetPacketizer)3 XNetThrottleTest (jmri.jmrix.lenz.XNetThrottleTest)2 Turnout (jmri.Turnout)1 TurnoutManager (jmri.TurnoutManager)1