public class Clingo extends SolverBase
| Modifier and Type | Field and Description |
|---|---|
protected String |
path2clingo |
ai| Modifier and Type | Method and Description |
|---|---|
protected AnswerSetList |
buildASL(List<String> output)
Processes clingo output and returns a list of answer sets.
|
protected void |
checkErrors()
Default implementation of error checking (should work for DLV package)
|
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 maxModels)
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.
|
checkSolverprotected String path2clingo
public Clingo(String path2clingo)
public AnswerSetList computeModels(Program p, int maxModels) throws SolverException
SolverSolverExceptionpublic AnswerSetList computeModels(String s, int maxModels) throws SolverException
SolverSolverExceptionpublic AnswerSetList computeModels(List<String> files, int maxModels) throws SolverException
SolverSolverExceptionprotected void checkErrors()
throws SolverException
SolverBasecheckErrors in class SolverBaseSolverExceptionprotected AnswerSetList buildASL(List<String> output)
output - clingo output linesCopyright © 2018. All rights reserved.