|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tuffy.ground.partition.PartitionScheme
public class PartitionScheme
A partitioning scheme on an MRF. Such a scheme consists of one or more components, with each component consisting of one or more partitions. Components are disjoint from each other, whereas partitions within the same component may share hyper-edges (i.e., clauses). In the current policy, each hyper-edge being shared across partitioned is randomly assigned to only one of the adjacent partitions.
Field Summary | |
---|---|
private java.util.HashMap<java.lang.Integer,Component> |
compMap
|
java.util.ArrayList<Component> |
components
Components and partitions. |
double |
maxCompSize
|
double |
maxNumAtomsInComp
|
double |
maxNumAtomsInPart
|
double |
maxPartSize
|
private int |
maxSplitFactor
|
private int |
ncomp
Stats. |
private int |
npart
|
private long |
numAtoms
|
private long |
numClauses
|
private long |
numCutClauses
|
private int |
numSplitComps
|
private java.util.HashMap<java.lang.Integer,Partition> |
partMap
|
double |
totalSize
|
Constructor Summary | |
---|---|
PartitionScheme(java.util.ArrayList<Component> comps)
|
Method Summary | |
---|---|
Component |
getCompByID(int id)
|
Component |
getCompByPartID(int pid)
|
MRF |
getMRFByPartID(int pid)
|
long |
getNumAtoms()
|
Partition |
getPartitionByID(int pid)
|
java.lang.String |
getStats()
Show stats about this partitioning scheme. |
int |
numComponents()
|
int |
numParts()
|
double |
size()
Estimated RAM size required to hold everything. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.ArrayList<Component> components
private java.util.HashMap<java.lang.Integer,Component> compMap
private java.util.HashMap<java.lang.Integer,Partition> partMap
private int ncomp
private int npart
public double totalSize
public double maxCompSize
public double maxPartSize
public double maxNumAtomsInComp
public double maxNumAtomsInPart
private long numAtoms
private long numClauses
private long numCutClauses
private int numSplitComps
private int maxSplitFactor
Constructor Detail |
---|
public PartitionScheme(java.util.ArrayList<Component> comps)
Method Detail |
---|
public java.lang.String getStats()
public long getNumAtoms()
public Component getCompByID(int id)
public Component getCompByPartID(int pid)
public Partition getPartitionByID(int pid)
public MRF getMRFByPartID(int pid)
public double size()
public int numComponents()
public int numParts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |