001package jmri.jmrix.mrc;
002
003/**
004 * Abstract base for classes representing a MRC communications port
005 *
006 * @author Bob Jacobsen Copyright (C) 2001
007 * @author Kevin Dickerson Copyright (C) 2014
008 */
009public abstract class MrcPortController extends jmri.jmrix.AbstractSerialPortController {
010
011    // base class. Implementations will provide InputStream and OutputStream
012    // objects to MrcTrafficController classes, who in turn will deal in messages.
013    protected MrcPortController(MrcSystemConnectionMemo connectionMemo) {
014        super(connectionMemo);
015    }
016
017    // check that this object is ready to operate
018    @Override
019    abstract public boolean status();
020
021    public boolean okToSend() {
022        return true;
023    }
024
025    @Override
026    public MrcSystemConnectionMemo getSystemConnectionMemo() {
027        return (MrcSystemConnectionMemo) super.getSystemConnectionMemo();
028    }
029}
030
031
032