Search in sources :

Example 1 with XNetInitializationManager

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

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

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

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

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());
}
Also used : XNetInitializationManager(jmri.jmrix.lenz.XNetInitializationManager) XNetTrafficController(jmri.jmrix.lenz.XNetTrafficController) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation)

Aggregations

LenzCommandStation (jmri.jmrix.lenz.LenzCommandStation)8 XNetInitializationManager (jmri.jmrix.lenz.XNetInitializationManager)8 XNetTrafficController (jmri.jmrix.lenz.XNetTrafficController)8 XNetPacketizer (jmri.jmrix.lenz.XNetPacketizer)3