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) |
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
SolvercomputeModels in interface SolvercomputeModels in class SolverBaseSolverExceptionprotected void checkErrors()
throws SolverException
SolverBasecheckErrors in class SolverBaseSolverExceptionprotected AnswerSetList buildASL(List<String> output)
Copyright © 2018. All rights reserved.