001package jmri.jmrix.easydcc.simulator; 002 003import jmri.jmrix.easydcc.EasyDccSystemConnectionMemo; 004import jmri.jmrix.easydcc.EasyDccTrafficController; 005 006 007/** 008 * Converts Stream-based I/O to/from EasyDcc messages. The "EasyDccInterface" 009 * side sends/receives message objects. 010 * <p> 011 * The connection to a EasyDccPortController is via a pair of *Streams, which 012 * then carry sequences of characters for transmission. Note that this 013 * processing is handled in an independent thread. 014 * <p> 015 * This handles the state transitions, based on the necessary state in each 016 * message. 017 * <p> 018 * Migrated for multiple connections, multi char connection prefix and Simulator. 019 * 020 * @author Bob Jacobsen Copyright (C) 2001 021 */ 022public class EasyDccSimulatorTrafficController extends EasyDccTrafficController { 023 024 /** 025 * Ctor 026 * 027 * @param adaptermemo the associated SystemConnectionMemo 028 */ 029 public EasyDccSimulatorTrafficController(EasyDccSystemConnectionMemo adaptermemo) { 030 super(adaptermemo); 031 setAllowUnexpectedReply(true); // there is some command sent during 032 // testing we treat as unexpected... 033 } 034 035 // private final static Logger log = LoggerFactory.getLogger(EasyDccSimulatorTrafficController.class); 036 037}