|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectInvariant
BinaryInvariant
SequenceScalar
public abstract class SequenceScalar
Abstract base class for comparing long sequences to long variables. Note that the sequence must always be passed in first.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Invariant |
|---|
Invariant.ClassVarnameComparator, Invariant.ClassVarnameFormulaComparator, Invariant.InvariantComparatorForPrinting, Invariant.Match |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
SequenceScalar()
|
protected |
SequenceScalar(PptSlice ppt)
|
| Method Summary | |
|---|---|
abstract InvariantStatus |
add_modified(long[] v1,
long v2,
int count)
This method need not check for falsified; that is done by the caller. |
InvariantStatus |
add_unmodified(long[] v1,
long v2,
int count)
By default, do nothing if the value hasn't been seen yet. |
InvariantStatus |
add(Object val1,
Object val2,
int mod_index,
int count)
|
abstract InvariantStatus |
check_modified(long[] v1,
long v2,
int count)
|
InvariantStatus |
check_unmodified(long[] v1,
long v2,
int count)
|
InvariantStatus |
check(Object val1,
Object val2,
int mod_index,
int count)
|
boolean |
is_symmetric()
Since the order is determined from the vars and the sequence is always first, this is essentially symmetric. |
protected Invariant |
resurrect_done_swapped()
Since the order is determined from the vars and the sequence is always first, no permute is necesesary. |
protected Invariant |
resurrect_done_unswapped()
Subclasses can override in the rare cases they need to fix things even when not swapped. |
protected Invariant |
resurrect_done(int[] permutation)
Called on the new invariant just before resurrect() returns it to allow subclasses to fix any information they might have cached from the old Ppt and VarInfos. |
protected int |
scl_index()
|
VarInfo |
sclvar()
|
VarInfo |
sclvar(VarInfo[] vis)
Return the scalar variable in the tuple whose VarInfos are corresponds to this.ppt.var_infos. |
protected boolean |
seq_first()
|
protected int |
seq_index()
|
VarInfo |
seqvar()
|
VarInfo |
seqvar(VarInfo[] vis)
Return the sequence variable in the tuple whose VarInfos are corresponds to this.ppt.var_infos. |
boolean |
valid_types(VarInfo[] vis)
Returns whether or not the specified types are valid. |
| Methods inherited from class BinaryInvariant |
|---|
add_unordered, check_unordered, find, get_swap |
| Methods inherited from class Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SequenceScalar(PptSlice ppt)
protected SequenceScalar()
| Method Detail |
|---|
public boolean valid_types(VarInfo[] vis)
valid_types in class InvariantInvariant.instantiate_ok(VarInfo[])protected Invariant resurrect_done_swapped()
public boolean is_symmetric()
is_symmetric in class BinaryInvariantprotected Invariant resurrect_done(int[] permutation)
Invariant
resurrect_done in class Invariantprotected Invariant resurrect_done_unswapped()
protected final boolean seq_first()
protected final int seq_index()
protected final int scl_index()
public VarInfo seqvar()
public VarInfo sclvar()
public VarInfo seqvar(VarInfo[] vis)
public VarInfo sclvar(VarInfo[] vis)
public InvariantStatus check(Object val1,
Object val2,
int mod_index,
int count)
check in class BinaryInvariant
public InvariantStatus add(Object val1,
Object val2,
int mod_index,
int count)
add in class BinaryInvariant
public abstract InvariantStatus check_modified(long[] v1,
long v2,
int count)
public InvariantStatus check_unmodified(long[] v1,
long v2,
int count)
public abstract InvariantStatus add_modified(long[] v1,
long v2,
int count)
public InvariantStatus add_unmodified(long[] v1,
long v2,
int count)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||