public class PartitionBlockHandler extends LiteralBlockHandler
satInstanceneedsUpdate| Constructor and Description |
|---|
PartitionBlockHandler(CnfSatInstance satInstance) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Integer> |
buildRepresentation(java.util.TreeSet<java.lang.Integer> clause) |
boolean |
checkRepresentability(java.util.TreeSet<java.lang.Integer> block) |
int |
defineNewBlock(java.util.TreeSet<java.lang.Integer> block) |
void |
ensureRepresentability(java.util.TreeSet<java.lang.Integer> block) |
int |
findHighestOverlapBlock(java.util.TreeSet<java.lang.Integer> block) |
java.util.TreeSet<java.lang.Integer> |
getBlock(int blockID) |
java.util.TreeSet<java.lang.Integer> |
getBlockByVar(int blockVar) |
java.util.Collection<java.util.TreeSet<java.lang.Integer>> |
getBlocks() |
java.util.List<java.util.TreeSet<java.lang.Integer>> |
retrieveBlocks() |
needsUpdate, requireUpdatepublic PartitionBlockHandler(CnfSatInstance satInstance)
public java.util.List<java.lang.Integer> buildRepresentation(java.util.TreeSet<java.lang.Integer> clause)
buildRepresentation in class LiteralBlockHandlerpublic boolean checkRepresentability(java.util.TreeSet<java.lang.Integer> block)
public void ensureRepresentability(java.util.TreeSet<java.lang.Integer> block)
ensureRepresentability in class LiteralBlockHandlerpublic int defineNewBlock(java.util.TreeSet<java.lang.Integer> block)
public int findHighestOverlapBlock(java.util.TreeSet<java.lang.Integer> block)
public java.util.Collection<java.util.TreeSet<java.lang.Integer>> getBlocks()
getBlocks in class LiteralBlockHandlerpublic java.util.List<java.util.TreeSet<java.lang.Integer>> retrieveBlocks()
public java.util.TreeSet<java.lang.Integer> getBlock(int blockID)
getBlock in class LiteralBlockHandlerpublic java.util.TreeSet<java.lang.Integer> getBlockByVar(int blockVar)