From: Bob J. <jac...@us...> - 2005-04-27 16:24:06
|
Update of /cvsroot/jmri/jmri/jmrit/symbolicprog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1496 Modified Files: VariableValue.java Log Message: read/write all update. Replace use of dirty parameter with ToRead, ToWrite. Fix comments Index: VariableValue.java =================================================================== RCS file: /cvsroot/jmri/jmri/jmrit/symbolicprog/VariableValue.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** VariableValue.java 26 Apr 2005 10:32:53 -0000 1.17 --- VariableValue.java 27 Apr 2005 16:23:55 -0000 1.18 *************** *** 15,25 **** * Represents a single Variable value; abstract base class. * ! * <p>The "dirty" parameter is used to indicate whether this VariableValue object ! * needs to be read or written. It is set at the beginning of a mass read/write ! * operation, and reset when this object is explicitly read or written. Most ! * importantly, it is also reset when the underlying storage (CVs, etc) are ! * read or written successfully. This allows combining multiple operations into one. * ! * @author Bob Jacobsen Copyright (C) 2001, 2002, 2003, 2004 * @version $Revision$ * --- 15,23 ---- * Represents a single Variable value; abstract base class. * ! * <p>The "changed" parameter (non-bound, accessed via isChanged) ! * indicates whether a "write changes" or "read changes" operation ! * should handle this object. * ! * @author Bob Jacobsen Copyright (C) 2001, 2002, 2003, 2004, 2005 * @version $Revision$ * *************** *** 114,124 **** - final public boolean isDirty() {return _dirty;} - private boolean _dirty = false; - final public void setDirty(boolean d) { - if (log.isDebugEnabled()) log.debug("Variable "+_label+"sets dirty "+_dirty); - _dirty = d; - } - // common information - none of these are bound public String label() { return _label; } --- 112,115 ---- |