public class Encoder extends OrderEncoder
CSPcsp, problem| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
commit() |
boolean |
decode(java.lang.String outFileName) |
void |
encode(Problem problem) |
void |
encode(java.lang.String satFileName) |
void |
encode(java.lang.String satFileName,
boolean incremental) |
int |
getSatClausesCount() |
long |
getSatFileSize() |
int |
getSatVariablesCount() |
void |
outputMap(java.lang.String mapFileName) |
java.lang.String |
summary() |
encodeClause, encodeIntegerVariableencode, encodeDelta, negateCodepublic Encoder(CSP csp)
public void commit()
throws SugarException
SugarExceptionpublic void cancel()
throws SugarException
SugarExceptionpublic int getSatVariablesCount()
public int getSatClausesCount()
public long getSatFileSize()
public void encode(Problem problem) throws SugarException
SugarExceptionpublic void encode(java.lang.String satFileName)
throws SugarException
SugarExceptionpublic void encode(java.lang.String satFileName,
boolean incremental)
throws SugarException
SugarExceptionpublic void outputMap(java.lang.String mapFileName)
throws java.io.IOException
outputMap in class AbstractEncoderjava.io.IOExceptionpublic boolean decode(java.lang.String outFileName)
throws SugarException,
java.io.IOException
decode in class AbstractEncoderSugarExceptionjava.io.IOExceptionpublic java.lang.String summary()