Search in sources :

Example 1 with XNetTrafficController

use of jmri.jmrix.lenz.XNetTrafficController 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 XNetTrafficController

use of jmri.jmrix.lenz.XNetTrafficController 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 XNetTrafficController

use of jmri.jmrix.lenz.XNetTrafficController 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 XNetTrafficController

use of jmri.jmrix.lenz.XNetTrafficController 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 XNetTrafficController

use of jmri.jmrix.lenz.XNetTrafficController 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

XNetTrafficController (jmri.jmrix.lenz.XNetTrafficController)11 LenzCommandStation (jmri.jmrix.lenz.LenzCommandStation)10 XNetInitializationManager (jmri.jmrix.lenz.XNetInitializationManager)8 XNetPacketizer (jmri.jmrix.lenz.XNetPacketizer)4