public class DLV extends SolverBase
ai| 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 s,
int maxModels)
This method computes at most maxModels answer sets for a given program as a flat string.
|
protected AnswerSetList |
parseAnswerSets(String s)
Processes a string of answer sets and returns an AnswerSetList.
|
protected AnswerSetList |
runDLV(Program p,
int nModels,
String otherOptions) |
checkErrors, checkSolverpublic DLV(String path2dlv)
public AnswerSetList computeModels(Program p, int models) throws SolverException
SolverSolverExceptionprotected AnswerSetList runDLV(Program p, int nModels, String otherOptions) throws SolverException
SolverExceptionprotected AnswerSetList parseAnswerSets(String s)
s - DLV outputpublic AnswerSetList computeModels(String s, int maxModels) throws SolverException
SolverSolverExceptionpublic AnswerSetList computeModels(List<String> files, int maxModels) throws SolverException
SolverSolverExceptionCopyright © 2018. All rights reserved.