Package jmri.jmrix.roco.z21
Class Z21CanReporter
- All Implemented Interfaces:
Comparable<NamedBean>,EventListener,PropertyChangeProvider,CollectingReporter,IdTagListener,AbstractMRListener,Z21Listener,NamedBean,PhysicalLocationReporter,Reporter
public class Z21CanReporter
extends AbstractRailComReporter
implements Z21Listener, CollectingReporter
Z21CanReporter implements the Reporter Manager interface
for Can connected reporters on Roco Z21 systems.
Reports from this reporter are of the type jmri.RailCom.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.NamedBean
NamedBean.BadNameException, NamedBean.BadSystemNameException, NamedBean.BadUserNameException, NamedBean.DisplayOptions, NamedBean.DuplicateSystemNameExceptionNested classes/interfaces inherited from interface jmri.PhysicalLocationReporter
PhysicalLocationReporter.Direction -
Field Summary
Fields inherited from class jmri.implementation.AbstractReporter
_currentReport, _lastReportFields inherited from class jmri.implementation.AbstractNamedBean
listenerRefs, mSystemName, registerFields inherited from interface jmri.NamedBean
DISPLAY_NAME_FORMAT, INCONSISTENT, PROPERTY_COMMENT, PROPERTY_ENABLED, PROPERTY_KNOWN_STATE, PROPERTY_STATE, PROPERTY_USERNAME, QUOTED_NAME_FORMAT, UNKNOWNFields inherited from interface jmri.Reporter
PROPERTY_CURRENT_REPORT, PROPERTY_LAST_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionZ21CanReporter(String systemName, String userName, Z21SystemConnectionMemo memo) Create a new Z21CanReporter. -
Method Summary
Modifier and TypeMethodDescriptionvoidmessage(Z21Message msg) Member function that will be invoked by a z21Interface implementation to forward a z21 message sent to the layout.voidMember function that will be invoked by a z21Interface implementation to forward a z21 message from the layout.Methods inherited from class jmri.implementation.AbstractRailComReporter
getLocoAddressMethods inherited from class jmri.implementation.AbstractIdTagReporter
describeState, getDirection, getPhysicalLocation, getPhysicalLocation, getState, notify, setStateMethods inherited from class jmri.implementation.AbstractReporter
getBeanType, getCurrentReport, getLastReport, setReportMethods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, dispose, equals, firePropertyChange, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeListenersByReference, getPropertyKeys, getSystemName, getUserName, hashCode, removeProperty, removePropertyChangeListener, removePropertyChangeListener, setComment, setProperty, setUserName, toString, toStringSuffix, updateListenerRef, vetoableChangeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.NamedBean
addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, compareTo, describeState, dispose, getBeanType, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListenersByReference, getPropertyKeys, getRecommendedToolTip, getSystemName, getUsageReport, getUserName, removeProperty, setComment, setProperty, setState, setUserName, toString, updateListenerRef, vetoableChangeMethods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from interface jmri.Reporter
getCurrentReport, getLastReport, getState, setReport
-
Constructor Details
-
Z21CanReporter
Create a new Z21CanReporter.- Parameters:
systemName- the system name of the new reporter.userName- the user name of the new reporter.memo- an instance of Z21SystemConnectionMemo this reporter is associated with.
-
-
Method Details
-
reply
Member function that will be invoked by a z21Interface implementation to forward a z21 message from the layout.- Specified by:
replyin interfaceZ21Listener- Parameters:
msg- The received z21 reply. Note that this same object may be presented to multiple users. It should not be modified here.
-
message
Member function that will be invoked by a z21Interface implementation to forward a z21 message sent to the layout. Normally, this function will do nothing.- Specified by:
messagein interfaceZ21Listener- Parameters:
msg- The received z21 message. Note that this same object may be presented to multiple users. It should not be modified here.
-
getCollection
- Specified by:
getCollectionin interfaceCollectingReporter- Returns:
- the collection of elements associated with this reporter.
-