001package jmri.jmrix.roco.z21; 002 003/** 004 * Interface for Z21 protocol Listeners 005 * 006 * @author Paul Bender Copyright (C) 2014 007 */ 008public interface Z21Listener extends jmri.jmrix.AbstractMRListener { 009 010 /** 011 * Member function that will be invoked by a z21Interface implementation to 012 * forward a z21 message from the layout. 013 * 014 * @param msg The received z21 reply. Note that this same object may be 015 * presented to multiple users. It should not be modified here. 016 */ 017 void reply(Z21Reply msg); 018 019 /** 020 * Member function that will be invoked by a z21Interface implementation to 021 * forward a z21 message sent to the layout. Normally, this function will do 022 * nothing. 023 * 024 * @param msg The received z21 message. Note that this same object may be 025 * presented to multiple users. It should not be modified here. 026 */ 027 void message(Z21Message msg); 028 029}