Search in sources :

Example 1 with XNetPacketizer

use of jmri.jmrix.lenz.XNetPacketizer 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 2 with XNetPacketizer

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

Example 3 with XNetPacketizer

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

the class EliteAdapter method configure.

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

Example 4 with XNetPacketizer

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

Aggregations

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