public class PartitionBlockHandler extends LiteralBlockHandler
satInstance
needsUpdate
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, requireUpdate
public PartitionBlockHandler(CnfSatInstance satInstance)
public java.util.List<java.lang.Integer> buildRepresentation(java.util.TreeSet<java.lang.Integer> clause)
buildRepresentation
in class LiteralBlockHandler
public boolean checkRepresentability(java.util.TreeSet<java.lang.Integer> block)
public void ensureRepresentability(java.util.TreeSet<java.lang.Integer> block)
ensureRepresentability
in class LiteralBlockHandler
public 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 LiteralBlockHandler
public java.util.List<java.util.TreeSet<java.lang.Integer>> retrieveBlocks()
public java.util.TreeSet<java.lang.Integer> getBlock(int blockID)
getBlock
in class LiteralBlockHandler
public java.util.TreeSet<java.lang.Integer> getBlockByVar(int blockVar)