001package jmri.jmrix.ieee802154;
002
003/**
004 * Abstract base for classes representing a communications port
005 *
006 * @author Bob Jacobsen Copyright (C) 2001, 2006, 2007, 2008 Converted to
007 * multiple connection
008 * @author kcameron Copyright (C) 2011 Modified for IEEE 802.15.4 connection
009 * @author Paul Bender Copyright (C) 2013
010 */
011public abstract class IEEE802154PortController extends jmri.jmrix.AbstractSerialPortController {
012
013    // base class. Implementations will provide InputStream and OutputStream
014    // objects to IEEE802154TrafficController classes, who in turn will deal in messages.
015    protected IEEE802154PortController(IEEE802154SystemConnectionMemo connectionMemo) {
016        super(connectionMemo);
017    }
018
019    @Override
020    public IEEE802154SystemConnectionMemo getSystemConnectionMemo() {
021        return (IEEE802154SystemConnectionMemo) super.getSystemConnectionMemo();
022    }
023
024    // returns the InputStream from the port
025    @Override
026    public abstract java.io.DataInputStream getInputStream();
027
028    // returns the outputStream to the port
029    @Override
030    public abstract java.io.DataOutputStream getOutputStream();
031
032    // check that this object is ready to operate
033    @Override
034    public abstract boolean status();
035
036}