|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.implementation.AbstractNamedBean
jmri.implementation.AbstractReporter
jmri.jmrix.rps.RpsReporter
public class RpsReporter
RPS implementation of the Reporter interface.
| Field Summary |
|---|
| Fields inherited from class jmri.implementation.AbstractNamedBean |
|---|
mSystemName, mUserName |
| Fields inherited from interface jmri.NamedBean |
|---|
INCONSISTENT, UNKNOWN |
| Constructor Summary | |
|---|---|
RpsReporter(String systemName)
|
|
RpsReporter(String systemName,
String userName)
|
|
| Method Summary | |
|---|---|
void |
dispose()
Deactivate this object, so that it releases as many resources as possible and no longer effects others. |
int |
getState()
Numerical state is the number of transmitters in the region |
void |
notify(Measurement r)
|
void |
setState(int i)
Provide generic access to internal state. |
| Methods inherited from class jmri.implementation.AbstractReporter |
|---|
getCurrentReport, getLastReport, setReport |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RpsReporter(String systemName)
public RpsReporter(String systemName,
String userName)
| Method Detail |
|---|
public void notify(Measurement r)
notify in interface MeasurementListenerpublic int getState()
getState in interface NamedBeangetState in interface Reporterpublic void setState(int i)
NamedBeanThis generally shouldn't be used by Java code; use the class-specific form instead. (E.g. setCommandedState in Turnout) This provided to make Jython script access easier to read.
setState in interface NamedBeanpublic void dispose()
NamedBeanFor example, if this object has listeners, after a call to this method it should no longer notify those listeners. Any native or system-wide resources it maintains should be released, including threads, files, etc.
It is an error to invoke any other methods on this object once dispose() has been called. Note, however, that there is no guarantee about behavior in that case.
Afterwards, references to this object may still exist elsewhere, preventing its garbage collection. But it's formally dead, and shouldn't be keeping any other objects alive. Therefore, this method should null out any references to other objects that this NamedBean contained.
dispose in interface NamedBeandispose in class AbstractNamedBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||