public abstract class AbstractEncoder
extends java.lang.Object
CSP| Constructor and Description |
|---|
AbstractEncoder(CSP csp,
Problem problem) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
decode(java.lang.String outFileName) |
void |
encode() |
abstract void |
encodeClause(Clause c) |
void |
encodeDelta() |
abstract void |
encodeIntegerVariable(IntegerVariable v) |
int |
negateCode(int code) |
void |
outputMap(java.lang.String mapFileName) |
public int negateCode(int code)
public abstract void encodeIntegerVariable(IntegerVariable v) throws SugarException
SugarExceptionpublic abstract void encodeClause(Clause c) throws SugarException
SugarExceptionpublic void encode()
throws SugarException
SugarExceptionpublic void encodeDelta()
throws java.io.IOException,
SugarException
java.io.IOExceptionSugarExceptionpublic void outputMap(java.lang.String mapFileName)
throws SugarException,
java.io.IOException
SugarExceptionjava.io.IOExceptionpublic boolean decode(java.lang.String outFileName)
throws SugarException,
java.io.IOException
SugarExceptionjava.io.IOException