|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.backtrack.util.FieldRecord.Record
public class FieldRecord.Record
Record of an old value.
Red (tfeng) |
Red (tfeng) |
Field Summary | |
---|---|
private int |
_identifier
The identifier of this record (unique for each field). |
private int[] |
_indices
The indices. |
private boolean |
_isBackup
Whether this record is a backup of an array. |
private long |
_timestamp
The timestamp. |
private java.lang.Object |
_value
The old value. |
Constructor Summary | |
---|---|
FieldRecord.Record(int[] indices,
java.lang.Object value,
long timestamp)
Construct a record and store an old value in it. |
|
FieldRecord.Record(int[] indices,
java.lang.Object value,
long timestamp,
boolean isBackup)
Construct a record and store an old value in it. |
Method Summary | |
---|---|
int |
getIdentifier()
Get the identifier of this record. |
int[] |
getIndices()
Get the indices on the left-hand side of the assignment. |
long |
getTimestamp()
Get the timestamp taken at the time when the record is created. |
java.lang.Object |
getValue()
Get the old value of this record. |
boolean |
isBackup()
Test if this record is a backup of an array. |
java.lang.String |
toString()
Convert this record to a readable string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int _identifier
private int[] _indices
private boolean _isBackup
private long _timestamp
private java.lang.Object _value
Constructor Detail |
---|
FieldRecord.Record(int[] indices, java.lang.Object value, long timestamp)
indices
- The indices on the left-hand side of the
assignment.value
- The old value. If the old value is of a
primitive type, it should be boxed with the corresponding
object type.timestamp
- The current timestamp.FieldRecord.Record(int[] indices, java.lang.Object value, long timestamp, boolean isBackup)
indices
- The indices on the left-hand side of the
assignment.value
- The old value. If the old value is of a
primitive type, it should be boxed with the corresponding
object type.timestamp
- The current timestamp.isBackup
- Whether this record is a backup of an array.Method Detail |
---|
public int getIdentifier()
public int[] getIndices()
public long getTimestamp()
public java.lang.Object getValue()
public boolean isBackup()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |