예제 #1
0
  /** set up all of the other objects to operate with a DCCppSimulator connected to this port */
  public void configure() {
    // connect to a packetizing traffic controller
    DCCppTrafficController packets = new DCCppPacketizer(new DCCppCommandStation());
    packets.connectPort(this);

    // start operation
    // packets.startThreads();
    this.getSystemConnectionMemo().setDCCppTrafficController(packets);

    sourceThread = new Thread(this);
    sourceThread.start();

    new DCCppInitializationManager(this.getSystemConnectionMemo());

    jmri.jmrix.dccpp.ActiveFlag.setActive();
  }