|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tuffy.ground.partition.Component
public class Component
A component in the MRF.
Field Summary | |
---|---|
java.util.HashMap<java.lang.Integer,GAtom> |
atoms
|
java.util.HashSet<java.lang.Integer> |
cutset
|
int |
id
|
int |
numAtoms
|
int |
numClauses
|
int |
numCutClauses
|
int |
numPins
|
java.util.ArrayList<Partition> |
parts
|
double |
ramSize
|
int |
rep
|
double |
totalCutWeight
|
double |
totalWeight
|
Constructor Summary | |
---|---|
Component()
|
Method Summary | |
---|---|
void |
addAtom(GAtom a)
Add a new atom into this component. |
int |
compareTo(Component c)
|
void |
discard()
Discard all data structures to reclaim the RAM. |
int |
numParts()
Get the number of partitions in this component. |
void |
showStats()
Show basic stats of this component. |
double |
size()
The size of this component estimated in the number fo bytes consumed to store this component in RAM. |
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 rep
public int numAtoms
public int numClauses
public int numCutClauses
public int numPins
public double totalWeight
public double totalCutWeight
public double ramSize
public java.util.ArrayList<Partition> parts
public java.util.HashSet<java.lang.Integer> cutset
public java.util.HashMap<java.lang.Integer,GAtom> atoms
Constructor Detail |
---|
public Component()
Method Detail |
---|
public void addAtom(GAtom a)
a
- the atompublic void discard()
public void showStats()
public int compareTo(Component c)
compareTo
in interface java.lang.Comparable<Component>
public double size()
public int numParts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |