001package jmri.jmrix.zimo; 002 003/** 004 * Abstract base for classes representing a MX-1 communications port. Adapted by 005 * Sip Bosch for use with zimo Mx-1. 006 * 007 * @author Bob Jacobsen Copyright (C) 2001 008 */ 009public abstract class Mx1PortController extends jmri.jmrix.AbstractSerialPortController { 010 // base class. Implementations will provide InputStream and OutputStream 011 // objects to Mx1TrafficController classes, who in turn will deal in messages. 012 013 protected Mx1PortController(Mx1SystemConnectionMemo connectionMemo) { 014 super(connectionMemo); 015 } 016 017 /** 018 * Can the port accept additional characters? This might go false for short 019 * intervals, but it might also stick off if something goes wrong. 020 * 021 * @return true if more data can be sent; false otherwise 022 */ 023 public abstract boolean okToSend(); 024 025 @Override 026 public Mx1SystemConnectionMemo getSystemConnectionMemo() { 027 return (Mx1SystemConnectionMemo) super.getSystemConnectionMemo(); 028 } 029}