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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionComputes an equivalent ground program for the given program.voidsetOptions(String options) Set additional command line options for gringo.voidsetPathToGrounder(String pathToGrounder) Set the path to the gringo binary 
- 
Constructor Details
- 
GringoGrounder
- Parameters:
 path- GringoGroundershell- 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:ASPGrounderComputes an equivalent ground program for the given program.- Specified by:
 getGroundProgramin classASPGrounder- Parameters:
 p- a program- Returns:
 - equivalent ground (variable-free) version of p
 
 
 -