Class GringoGrounder
java.lang.Object
org.tweetyproject.lp.asp.grounder.ASPGrounder
org.tweetyproject.lp.asp.grounder.GringoGrounder
Invokes Gringo (Part of the Potassco
project), an ASP system that grounds logic programs.
- Author:
- Anna Gessler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionComputes an equivalent ground program for the given program.void
setOptions
(String options) Set additional command line options for gringo.void
setPathToGrounder
(String pathToGrounder) Set the path to the gringo binary
-
Constructor Details
-
GringoGrounder
-
GringoGrounder
- Parameters:
path
- GringoGrounder
-
-
Method Details
-
getPathToGrounder
- Returns:
- the path to the gringo binary
-
setPathToGrounder
Set the path to the gringo binary- Parameters:
pathToGrounder
- setPathToGrounder
-
getOptions
- Returns:
- additional command line options for gringo
-
setOptions
Set additional command line options for gringo.- Parameters:
options
- setOptions
-
getOutput
- Returns:
- output of last gringo call, in aspif format. Can be piped directly to clasp.
-
getGroundProgram
Description copied from class:ASPGrounder
Computes an equivalent ground program for the given program.- Specified by:
getGroundProgram
in classASPGrounder
- Parameters:
p
- a program- Returns:
- equivalent ground (variable-free) version of p
-