public class DLVComplex extends SolverBase
ai| Constructor and Description |
|---|
DLVComplex(String path2dlx) |
| Modifier and Type | Method and Description |
|---|---|
AnswerSetList |
computeModels(List<String> files,
int maxModels)
This method computes at most maxModels for a given program, a collection of facts,
and an arbitrary number of additional programs as a file resource.
|
AnswerSetList |
computeModels(Program p,
int models)
This method computes at most maxModels answer sets for a given program.
|
AnswerSetList |
computeModels(String program,
int models)
This method computes at most maxModels answer sets for a given program as a flat string.
|
protected AnswerSet |
parseAnswerSet(String s) |
protected AnswerSetList |
processResults(List<String> result) |
protected AnswerSetList |
runDLV(Program p,
int nModels,
String otherOptions) |
checkErrors, checkSolverpublic DLVComplex(String path2dlx)
public AnswerSetList computeModels(Program p, int models) throws SolverException
SolverSolverExceptionprotected AnswerSetList runDLV(Program p, int nModels, String otherOptions) throws SolverException
SolverExceptionpublic AnswerSetList computeModels(String program, int models) throws SolverException
SolverSolverExceptionprotected AnswerSetList processResults(List<String> result) throws SolverException
SolverExceptionpublic AnswerSetList computeModels(List<String> files, int maxModels) throws SolverException
SolverSolverExceptionCopyright © 2018. All rights reserved.