Uses of Class
org.tweetyproject.lp.asp.syntax.Program
Package
Description
-
Uses of Program in org.tweetyproject.arg.lp.syntax
ModifierConstructorDescriptionArgumentationKnowledgeBase
(Program program) Constructs an `ArgumentationKnowledgeBase` object initialized with a given program. -
Uses of Program in org.tweetyproject.logics.translators.aspnlp
Modifier and TypeMethodDescriptionAspNlpTranslator.toASP
(NLPProgram program) Translate the given NLP-program into an ASP-program.Translates the given NLP-rule into an ASP Program. -
Uses of Program in org.tweetyproject.lp.asp.analysis
Modifier and TypeMethodDescriptionPmInconsistencyMeasure.inconsistencyMeasure
(Program beliefBase) SdInconsistencyMeasure.inconsistencyMeasure
(Program beliefBase) -
Uses of Program in org.tweetyproject.lp.asp.beliefdynamics.baserevision
Modifier and TypeMethodDescriptionScreenedMaxichoiceConsolidation.consolidate
(Program p) Calculates the screened consolidation !r of program p using a maxi-choice selection function s, i.e.ScreenedRemainderSets.getScreen()
Returns the screened rules that are contained in every remainder set.ScreenedRemainderSets.getSourceBeliefBase()
Returns the original program p for which this set represents the set of remainder sets.Modifier and TypeMethodDescriptionScreenedRemainderSets.asPrograms()
Returns this set of remainder sets as a collection of programs where each program contains exactly the rules of one remainder set.Modifier and TypeMethodDescriptionint
ScreenedMaxichoiceConsolidation.consolidate
(Program p) Calculates the screened consolidation !r of program p using a maxi-choice selection function s, i.e.ModifierConstructorDescriptionScreenedMaxichoiceConsolidation
(Program screen, SelectionFunction<ASPRule> selection, ASPSolver solver) Creates a new screened maxi-choice consolidation operator with the given screen, selection function and a link to an answer set solver.ScreenedRemainderSets
(Program p, Program r, ASPSolver solver) Creates a new set of screened remainder sets of program p that all contain the screened rules r. -
Uses of Program in org.tweetyproject.lp.asp.beliefdynamics.revision
Modifier and TypeMethodDescriptionCredibilityRevision.AnswersetProcessing.process
(List<Program> orderedPrograms, Collection<AnswerSet> answersets) The method takes the list of ordered programs and the answer set of the credibility logic program and calculates a revided programCredibilityRevision.DefaultBehavior.process
(List<Program> orderedPrograms, Collection<AnswerSet> answersets) CredibilityRevision.revise
(List<Collection<ASPRule>> ol) PreferenceHandling.revise
(Collection<ASPRule> base, Collection<ASPRule> formulas) Translates the given list of programs to the credibility logic program.Modifier and TypeMethodDescriptionCredibilityRevision.AnswersetProcessing.process
(List<Program> orderedPrograms, Collection<AnswerSet> answersets) The method takes the list of ordered programs and the answer set of the credibility logic program and calculates a revided programCredibilityRevision.DefaultBehavior.process
(List<Program> orderedPrograms, Collection<AnswerSet> answersets) Translates the given list of programs to the credibility logic program. -
Uses of Program in org.tweetyproject.lp.asp.grounder
Modifier and TypeMethodDescriptionabstract Program
ASPGrounder.getGroundProgram
(Program p) Computes an equivalent ground program for the given program.GringoGrounder.getGroundProgram
(Program p) Modifier and TypeMethodDescriptionabstract Program
ASPGrounder.getGroundProgram
(Program p) Computes an equivalent ground program for the given program.GringoGrounder.getGroundProgram
(Program p) -
Uses of Program in org.tweetyproject.lp.asp.parser
Modifier and TypeMethodDescriptionAspifParser.parseProgram
(String output) Parses output in the aspif format and returns the resulting program.static Program
ASPParser.parseProgram
(Reader reader) parse the programstatic Program
ASPParser.parseProgram
(String program) Parse the programmAspifParser.parseProgramFile
(String filename) Parses the file of the given filename in the aspif format and returns the resulting program.InstantiateVisitor.visit
(ASTProgram node, Object data) -
Uses of Program in org.tweetyproject.lp.asp.reasoner
Modifier and TypeMethodDescriptionReturns a characterizing model (answer set) of the given belief base using the given upper integer limit.Returns a characterizing model (answer set) of the given belief base using the given upper integer limit.abstract Collection
<AnswerSet> Returns a characterizing model (answer set) of the given belief base using the given upper integer limit.Returns a characterizing model (answer set) of the given belief base using the given upper integer limit.ClingoSolver.getOptimum
(Program p) Computes the optimum of a program that contains optimization statements, if there is one.abstract Boolean
ASPSolver.query
(Program beliefbase, ASPLiteral formula) ClingoSolver.query
(Program beliefbase, ASPLiteral formula) ClingoSolver.query
(Program beliefbase, ASPLiteral formula, InferenceMode inferenceMode) Evaluates a query on the given belief base using the specified inference mode.DLVSolver.query
(Program beliefbase, ASPLiteral formula) DLVSolver.query
(Program beliefbase, ASPLiteral formula, InferenceMode inferenceMode) Evaluates a query on the given belief base using the specified inference mode. -
Uses of Program in org.tweetyproject.lp.asp.semantics
-
Uses of Program in org.tweetyproject.lp.asp.syntax
Modifier and TypeMethodDescriptionProgram.clone()
static Program
Program.getDefaultification
(Program p) Creates the defaultification p_d of a given program p.Program.getReduct
(Set<ASPLiteral> state) Returns the reduct of this program wrt.Program.substitute
(Map<? extends Term<?>, ? extends Term<?>> map) Program.substitute
(Term<?> v, Term<?> t) Modifier and TypeMethodDescriptionvoid
Adds another program's content to the content of this program.static Program
Program.getDefaultification
(Program p) Creates the defaultification p_d of a given program p. -
Uses of Program in org.tweetyproject.lp.asp.writer
Modifier and TypeMethodDescriptionvoid
ClingoWriter.printProgram
(Program p) Prints the given program in clingo format.void
DLVWriter.printProgram
(Program p) Prints the given program in DLV format.