public class Variable
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Variable.State |
Modifier and Type | Field and Description |
---|---|
double |
activity |
int |
level |
int |
num |
Clause |
reason |
protected int |
setHeuristic |
Variable.State |
setNext |
Variable.State |
state |
java.util.List<Clause> |
watched |
Constructor and Description |
---|
Variable(int num) |
Variable(int num,
double activity) |
Modifier and Type | Method and Description |
---|---|
Clause |
assign(boolean val,
Variable[] variables,
java.util.ArrayList<Clause> units,
java.util.Stack<Variable> stack,
int lvl)
Belegt eine Variable
|
boolean |
getBoolHeur() |
boolean |
litIsSat(int literal)
vB: literal entspricht der Variablen
|
java.lang.String |
toString() |
void |
unassign(IActivity activity2)
Nach dem aufruf ist diese Variable unbelegt.
|
public double activity
public int level
public Clause reason
protected int setHeuristic
public Variable.State setNext
public Variable.State state
public final int num
public final java.util.List<Clause> watched
public Variable(int num)
public Variable(int num, double activity)
public boolean getBoolHeur()
public Clause assign(boolean val, Variable[] variables, java.util.ArrayList<Clause> units, java.util.Stack<Variable> stack, int lvl)
val
- - den Wert auf den belegt werden sollvariables
- - der aktuelle Variablenvektorunits
- - Liste, in der die Unit Klauseln gespeichert werdenlvl
- stack
- public java.lang.String toString()
toString
in class java.lang.Object
public void unassign(IActivity activity2)
activity2
- public boolean litIsSat(int literal)
literal
-