Package jmri.jmrix.internal
Class TrackReporter
- java.lang.Object
-
- jmri.implementation.AbstractNamedBean
-
- jmri.implementation.AbstractReporter
-
- jmri.jmrix.internal.TrackReporter
-
- All Implemented Interfaces:
java.lang.Comparable<NamedBean>
,PropertyChangeProvider
,CollectingReporter
,NamedBean
,Reporter
public class TrackReporter extends AbstractReporter implements CollectingReporter
Extension of the AbstractReporter class that implements CollectingReporter and represents the contents of a track. This is an internal construct that does not correspond to a physical reporter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jmri.NamedBean
NamedBean.BadNameException, NamedBean.BadSystemNameException, NamedBean.BadUserNameException, NamedBean.DisplayOptions, NamedBean.DuplicateSystemNameException
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
state
-
Fields inherited from class jmri.implementation.AbstractReporter
_currentReport, _lastReport
-
Fields inherited from class jmri.implementation.AbstractNamedBean
listenerRefs, mSystemName, register
-
Fields inherited from interface jmri.NamedBean
DISPLAY_NAME_FORMAT, INCONSISTENT, PROPERTY_STATE, QUOTED_NAME_FORMAT, UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description TrackReporter(java.lang.String systemName)
TrackReporter(java.lang.String systemName, java.lang.String userName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.Object>
getCollection()
int
getState()
Provide an integer form of the last report.java.lang.Object
pullEast()
java.lang.Object
pullWest()
void
pushEast(java.lang.Object o)
void
pushWest(java.lang.Object o)
void
setState(int s)
Provide generic access to internal state.-
Methods inherited from class jmri.implementation.AbstractReporter
getBeanType, getCurrentReport, getLastReport, setReport
-
Methods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, describeState, 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, vetoableChange
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods 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, setUserName, toString, updateListenerRef, vetoableChange
-
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from interface jmri.Reporter
getCurrentReport, getLastReport, setReport
-
-
-
-
Field Detail
-
state
int state
-
-
Constructor Detail
-
TrackReporter
public TrackReporter(java.lang.String systemName)
-
TrackReporter
public TrackReporter(java.lang.String systemName, java.lang.String userName)
-
-
Method Detail
-
getState
public int getState()
Description copied from interface:Reporter
Provide an integer form of the last report.
-
setState
public void setState(int s)
Description copied from interface:NamedBean
Provide generic access to internal state.This generally shouldn't be used by Java code; use the class-specific form instead (e.g. setCommandedState in Turnout). This is provided to make scripts access easier to read.
-
getCollection
public java.util.Collection<java.lang.Object> getCollection()
- Specified by:
getCollection
in interfaceCollectingReporter
- Returns:
- the collection of elements associated with this reporter.
-
pushEast
public void pushEast(java.lang.Object o)
-
pushWest
public void pushWest(java.lang.Object o)
-
pullEast
public java.lang.Object pullEast()
-
pullWest
public java.lang.Object pullWest()
-
-