Class AlwaysQuery
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.AlwaysQuery
- All Implemented Interfaces:
- Comparable<Proposition>,- Formula,- Atom,- ClassicalFormula,- Conjunctable,- Disjunctable,- Invertable,- ProbabilityAware,- SimpleLogicalFormula
This class represents an always query in the action query language S. Such
 queries have the following form: "always F where F is a state formula".
- Author:
- Sebastian Homann
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.tweetyproject.logics.commons.syntax.interfaces.AtomAtom.AtomImpl, Atom.RETURN_SET_PREDICATE
- 
Constructor SummaryConstructorsConstructorDescriptionAlwaysQuery(FolFormula formula) Creates a new always query with the given inner formula.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the set of all actions contained in 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.QueryPropositiongetActionSignature, getInnerFormulaMethods 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- 
AlwaysQueryCreates a new always query with the given inner formula.- Parameters:
- formula- the inner formula of this newly created always query.
 
 
- 
- 
Method Details- 
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.
 
- 
toString- Specified by:
- toStringin class- QueryProposition
 
- 
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.
 
- 
getVariables- Specified by:
- getVariablesin class- QueryProposition
- Returns:
- all variables occurring in inner formulas and actions of this query proposition.
 
 
-