|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tuffy.infer.ds.GAtom
public class GAtom
A ground atom.
Field Summary | |
---|---|
boolean |
cut
Whether this atom is referred to by multiple partitions |
boolean |
fixed
Whether the truth value of this GAtom is fixed. |
int |
id
ID of this GAtom. |
boolean |
lowlowTruth
|
boolean |
lowTruth
Recorded truth value for low-cost. |
int |
pid
ID of the partition containing this atom |
float |
prob
|
java.lang.String |
rep
String representation of this GAtom. |
private double |
rescue
Two cost of changing the truth value of this GAtom. |
int |
tallyTrue
Tallies used in MCSAT. |
boolean |
truth
The truth value of this GAtom. |
private double |
violate
Two cost of changing the truth value of this GAtom. |
int |
wannabe
The ideal truth value of this GAtom. |
Constructor Summary | |
---|---|
GAtom(int nid)
Constructor for GAtom. |
Method Summary | |
---|---|
void |
assignSatPotential(GClause f)
Flipping this node will make f unsat->sat. |
void |
assignUnsatPotential(GClause f)
Flipping this node will make f sat->unsat. |
boolean |
critical()
Whether wannabe == 3. |
boolean |
criticalForHardClauses()
Whether changing the truth value of this GAtom will violate several hard clauses. |
double |
delta()
|
double |
delta(KeyBlock keyBlock)
|
void |
flip()
Flip the truth value of this GAtom. |
java.util.ArrayList<GAtom> |
flip(KeyBlock keyBlock)
|
void |
forceFlip()
|
void |
invertDelta()
Exchange the value of rescue and
violate . |
void |
markCritical()
Set wannabe = 3. |
void |
markWannaBeFalse()
Set wannabe = 1. |
void |
markWannaBeTrue()
Set wannabe = 2. |
void |
resetDelta()
Reset rescue and violate to zero. |
void |
revokeSatPotential(GClause f)
Flipping this node no longer makes f unsat->sat. |
void |
revokeUnsatPotential(GClause f)
Flipping this node no longer makes f sat->unsat. |
boolean |
wannaBeFalse()
Whether wannabe == 1; (false) |
boolean |
wannaBeTrue()
Whether wannabe == 2; (true) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int id
public int pid
public boolean cut
public boolean truth
public int wannabe
public boolean lowTruth
public boolean lowlowTruth
public boolean fixed
public int tallyTrue
public float prob
private double violate
private double rescue
public java.lang.String rep
Constructor Detail |
---|
public GAtom(int nid)
nid
- ID of this GAtom.Method Detail |
---|
public boolean critical()
public boolean wannaBeFalse()
public boolean wannaBeTrue()
public void markCritical()
public void markWannaBeFalse()
public void markWannaBeTrue()
public void flip()
public void forceFlip()
public java.util.ArrayList<GAtom> flip(KeyBlock keyBlock)
public void resetDelta()
rescue
and violate
to zero.
public void invertDelta()
rescue
and
violate
. When the truth value of this
GAtom is flipped, this function is called.
public boolean criticalForHardClauses()
public double delta()
public double delta(KeyBlock keyBlock)
public void assignSatPotential(GClause f)
f
- GClause that currently not registered.public void assignUnsatPotential(GClause f)
f
- GClause that currently not registered.public void revokeSatPotential(GClause f)
f
- GClause that currently registered as unsat->sat.public void revokeUnsatPotential(GClause f)
f
- GClause that currently registered as sat->unsat.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |