jmri
Class DefaultMemory
java.lang.Object
jmri.AbstractNamedBean
jmri.AbstractMemory
jmri.DefaultMemory
- All Implemented Interfaces:
- Serializable, Memory, NamedBean
public class DefaultMemory
- extends AbstractMemory
Concrete implementation of the Reporter interface for the Internal system.
- Author:
- Bob Jacobsen Copyright (C) 2004
- See Also:
- Serialized Form
|
Method Summary |
int |
getState()
Provide generic access to internal state. |
void |
setState(int s)
Provide generic access to internal state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMemory
public DefaultMemory(String systemName)
DefaultMemory
public DefaultMemory(String systemName,
String userName)
getState
public int getState()
- Provide generic access to internal state.
This generally shouldn't be used by Java code; use
the class-specific form instead. (E.g. getCommandedState in Turnout)
This provided to make Jython
script access easier to read.
If the current value can be reduced to an integer, that
is returned, otherwise a value of -1 is returned.
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 provided to make Jython
script access easier to read.
Copyright © 1997 - 2008 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: