Uses of Class
org.tweetyproject.lp.asp.syntax.Program
Packages that use Program
Package
Description
-
Uses of Program in org.tweetyproject.arg.lp.syntax
Constructors in org.tweetyproject.arg.lp.syntax with parameters of type ProgramModifierConstructorDescriptionArgumentationKnowledgeBase
(Program program) Constructs an `ArgumentationKnowledgeBase` object initialized with a given program. -
Uses of Program in org.tweetyproject.logics.translators.aspnlp
Methods in org.tweetyproject.logics.translators.aspnlp that return ProgramModifier and TypeMethodDescriptionAspNlpTranslator.toASP
(NLPProgram program) Translate the given NLP-program into an ASP-program.Translates the given NLP-rule into an ASP Program.Methods in org.tweetyproject.logics.translators.aspnlp with parameters of type Program -
Uses of Program in org.tweetyproject.lp.asp.analysis
Methods in org.tweetyproject.lp.asp.analysis with parameters of type ProgramModifier and TypeMethodDescriptionPmInconsistencyMeasure.inconsistencyMeasure
(Program beliefBase) SdInconsistencyMeasure.inconsistencyMeasure
(Program beliefBase) -
Uses of Program in org.tweetyproject.lp.asp.beliefdynamics.baserevision
Methods in org.tweetyproject.lp.asp.beliefdynamics.baserevision that return ProgramModifier 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.Methods in org.tweetyproject.lp.asp.beliefdynamics.baserevision that return types with arguments of type ProgramModifier 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.Methods in org.tweetyproject.lp.asp.beliefdynamics.baserevision with parameters of type ProgramModifier and TypeMethodDescriptionint
ScreenedMaxichoiceConsolidation.consolidate
(Program p) Calculates the screened consolidation !r of program p using a maxi-choice selection function s, i.e.Constructors in org.tweetyproject.lp.asp.beliefdynamics.baserevision with parameters of type ProgramModifierConstructorDescriptionScreenedMaxichoiceConsolidation
(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
Methods in org.tweetyproject.lp.asp.beliefdynamics.revision that return ProgramModifier 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.Method parameters in org.tweetyproject.lp.asp.beliefdynamics.revision with type arguments of type ProgramModifier 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
Methods in org.tweetyproject.lp.asp.grounder that return ProgramModifier and TypeMethodDescriptionabstract Program
ASPGrounder.getGroundProgram
(Program p) Computes an equivalent ground program for the given program.GringoGrounder.getGroundProgram
(Program p) Methods in org.tweetyproject.lp.asp.grounder with parameters of type ProgramModifier 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
Methods in org.tweetyproject.lp.asp.parser that return ProgramModifier 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
Methods in org.tweetyproject.lp.asp.reasoner with parameters of type ProgramModifier 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
Methods in org.tweetyproject.lp.asp.semantics with parameters of type Program -
Uses of Program in org.tweetyproject.lp.asp.syntax
Methods in org.tweetyproject.lp.asp.syntax that return ProgramModifier 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) Methods in org.tweetyproject.lp.asp.syntax with parameters of type ProgramModifier 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.Constructors in org.tweetyproject.lp.asp.syntax with parameters of type Program -
Uses of Program in org.tweetyproject.lp.asp.writer
Methods in org.tweetyproject.lp.asp.writer with parameters of type ProgramModifier 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.