001package jmri.jmrix.can.adapters.gridconnect; 002 003import jmri.jmrix.can.CanSystemConnectionMemo; 004 005/** 006 * Abstract base for classes representing a GridConnect communications port. 007 * 008 * Implementations will provide InputStream and OutputStream 009 * objects to CabrsTrafficController classes, who in turn will deal in messages. 010 * 011 * @author Bob Jacobsen Copyright (C) 2001 012 * @author Andrew Crosland 2008 013 */ 014public abstract class GcPortController extends jmri.jmrix.AbstractSerialPortController { 015 016 /** 017 * Create a new GC PortController. 018 * @param connectionMemo CAN System Connection. 019 */ 020 protected GcPortController(CanSystemConnectionMemo connectionMemo) { 021 super(connectionMemo); 022 } 023 024 /** 025 * Get the CAN System Connection. 026 * {@inheritDoc} 027 */ 028 @Override 029 public CanSystemConnectionMemo getSystemConnectionMemo() { 030 return (CanSystemConnectionMemo) super.getSystemConnectionMemo(); 031 } 032 033} 034 035 036