jmri.jmrit.symbolicprog
Class AbstractValue

java.lang.Object
  extended by jmri.jmrit.symbolicprog.AbstractValue
Direct Known Subclasses:
CvValue, VariableValue

public abstract class AbstractValue
extends Object

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

Author:
Bob Jacobsen Copyright (C) 2001, 2005

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

UNKNOWN

public static final int UNKNOWN
Defines state when nothing is known about the real value

See Also:
Constant Field Values

EDITED

public static final int EDITED
Defines state where value has been edited, no longer same as in decoder or file

See Also:
Constant Field Values

READ

public static final int READ
Defines state where value has been read from (hence same as) decoder, but perhaps not same as in file

See Also:
Constant Field Values

STORED

public static final int STORED
Defines state where value has been written to (hence same as) decoder, but perhaps not same as in file

See Also:
Constant Field Values

FROMFILE

public static final int FROMFILE
Defines state where value was read from a config file, but might not be the same as the decoder

See Also:
Constant Field Values

SAME

public static final int SAME
Defines state where value was read from a config file, and is the same as the decoder

See Also:
Constant Field Values

DIFF

public static final int DIFF
Defines state where value was read from a config file, and is the not the same as the decoder

See Also:
Constant Field Values
Constructor Detail

AbstractValue

public AbstractValue()
Method Detail

setToRead

public void setToRead(boolean state)

isToRead

public boolean isToRead()

setToWrite

public void setToWrite(boolean state)

isToWrite

public boolean isToWrite()

stateNameFromValue

public static String stateNameFromValue(int val)


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: SourceForge_Logo