|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.symbolicprog.AbstractValue
public abstract class AbstractValue
Define common base class methods for CvValue and VariableValue classes
The ToRead parameter (boolean, unbound) is used to remember whether this object has been read during a "read all" operation. This allows removal of duplicate operations.
The ToWrite parameter (boolean, unbound) is used to remember whether this object has been read during a "write all" operation. This allows removal of duplicate operations. Description: Represents a single CV value
| Field Summary | |
|---|---|
static int |
DIFF
Defines state where value was read from a config file, and is the not the same as the decoder |
static int |
EDITED
Defines state where value has been edited, no longer same as in decoder or file |
static int |
FROMFILE
Defines state where value was read from a config file, but might not be the same as the decoder |
static int |
READ
Defines state where value has been read from (hence same as) decoder, but perhaps not same as in file |
static int |
SAME
Defines state where value was read from a config file, and is the same as the decoder |
static int |
STORED
Defines state where value has been written to (hence same as) decoder, but perhaps not same as in file |
static int |
UNKNOWN
Defines state when nothing is known about the real value |
| Constructor Summary | |
|---|---|
AbstractValue()
|
|
| Method Summary | |
|---|---|
boolean |
isToRead()
|
boolean |
isToWrite()
|
void |
setToRead(boolean state)
|
void |
setToWrite(boolean state)
|
static String |
stateNameFromValue(int val)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNKNOWN
public static final int EDITED
public static final int READ
public static final int STORED
public static final int FROMFILE
public static final int SAME
public static final int DIFF
| Constructor Detail |
|---|
public AbstractValue()
| Method Detail |
|---|
public void setToRead(boolean state)
public boolean isToRead()
public void setToWrite(boolean state)
public boolean isToWrite()
public static String stateNameFromValue(int val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||