001package jmri.jmrix.grapevine; 002 003/** 004 * Interface to send/receive serial information. 005 * 006 * @author Bob Jacobsen Copyright (C) 2001, 2006, 2007 007 */ 008public interface SerialInterface { 009 010 void addSerialListener(SerialListener l); 011 012 void removeSerialListener(SerialListener l); 013 014 boolean status(); // true if the implementation is operational 015 016 void sendSerialMessage(SerialMessage m, SerialListener l); // 2nd arg gets the reply 017 018}