Class NecessarilyQuery
java.lang.Object
org.tweetyproject.logics.pl.syntax.PlFormula
org.tweetyproject.logics.pl.syntax.Proposition
org.tweetyproject.action.query.syntax.QueryProposition
org.tweetyproject.action.query.syntax.NecessarilyQuery
- All Implemented Interfaces:
- Comparable<Proposition>,- Formula,- Atom,- ClassicalFormula,- Conjunctable,- Disjunctable,- Invertable,- ProbabilityAware,- SimpleLogicalFormula
This class represents a necessarily query in the action query language S.
 Such queries have the following form: "necessarily F after A_1 ; A_2 ; ... ;
 A_n" where F is a state formula, and each A_i (0 < i < n+1) is an
 action.
- Author:
- Sebastian Homann
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.tweetyproject.logics.commons.syntax.interfaces.AtomAtom.AtomImpl, Atom.RETURN_SET_PREDICATE
- 
Constructor SummaryConstructorsConstructorDescriptionNecessarilyQuery(FolFormula formula) Creates a new necessarily query with an empty action sequence.NecessarilyQuery(FolFormula formula, List<FolAction> actions) Creates a new necessarily query with the given inner formula and list of actions.NecessarilyQuery(FolFormula formula, FolAction action) Creates a new necessarily query with the given inner formula and a single action.
- 
Method SummaryModifier and TypeMethodDescriptionRetrieves the list of actions associated with this necessarily query in the correct order.Returns a new action signature containing all symbols of the inner formula of this proposition.Returns the set of all actions contained in this query proposition.Returns all variables occurring in the inner formulas and actions of this query proposition.substitute(Map<? extends Term<?>, ? extends Term<?>> map) Returns a new query proposition of the same type, in which all variables in inner formulas and actions are replaced according to the given map.toString()Methods inherited from class org.tweetyproject.action.query.syntax.QueryPropositiongetInnerFormulaMethods inherited from class org.tweetyproject.logics.pl.syntax.PropositionaddArgument, clone, collapseAssociativeFormulas, compareTo, equals, getArguments, getAtoms, getLiterals, getModels, getName, getPredicate, getPredicates, getSignature, hashCode, isComplete, isLiteral, numberOfOccurrences, replace, setPredicate, toCnf, toNnf, trimMethods inherited from class org.tweetyproject.logics.pl.syntax.PlFormulacombineWithAnd, combineWithOr, complement, getModels, getPredicateCls, getPrimeImplicants, getUniformProbability, isClause, isConjunctiveClause, resolvableWith, resolveWith, toBlakeCanonicalForm, toDnfMethods inherited from interface org.tweetyproject.logics.commons.syntax.interfaces.SimpleLogicalFormulagetPredicateCls
- 
Constructor Details- 
NecessarilyQueryCreates a new necessarily query with an empty action sequence.- Parameters:
- formula- the inner formula of this query.
 
- 
NecessarilyQueryCreates a new necessarily query with the given inner formula and list of actions.- Parameters:
- formula- the inner formula of this necessarily query.
- actions- the action sequence of this necessarily query.
 
- 
NecessarilyQueryCreates a new necessarily query with the given inner formula and a single action.- Parameters:
- formula- the inner formula of this necessarily query.
- action- a single action.
 
 
- 
- 
Method Details- 
getActions
- 
getActionSignatureDescription copied from class:QueryPropositionReturns a new action signature containing all symbols of the inner formula of this proposition.- Overrides:
- getActionSignaturein class- QueryProposition
- Returns:
- a new action signature containing all symbols of the inner formula of this proposition.
 
- 
substituteDescription copied from class:QueryPropositionReturns a new query proposition of the same type, in which all variables in inner formulas and actions are replaced according to the given map.- Specified by:
- substitutein class- QueryProposition
- Parameters:
- map- a map from variables to constants.
- Returns:
- a new query proposition.
 
- 
getInnerActionsDescription copied from class:QueryPropositionReturns the set of all actions contained in this query proposition. This is mainly a convenience function, as only necessarily propositions contain any actions.- Specified by:
- getInnerActionsin class- QueryProposition
- Returns:
- the set of all actions contained in this query proposition.
 
- 
getVariablesDescription copied from class:QueryPropositionReturns all variables occurring in the inner formulas and actions of this query proposition.- Specified by:
- getVariablesin class- QueryProposition
- Returns:
- a set of `Variable` objects representing all variables in the inner formulas and actions of this query proposition.
 
- 
toString- Specified by:
- toStringin class- QueryProposition
 
 
-