Class SActionQuery
java.lang.Object
org.tweetyproject.action.query.syntax.SActionQuery
- All Implemented Interfaces:
ActionQuery
,Formula
This class represents a single action query in the action query language S,
which is based on the query language "P" discussed in the paper: Action
Languages. by Michael Gelfond and Vladimir Lifschitz, ETAI: Electronic
Transactions on AI, 1998.
An action query is represented by a propositional formula over propositions
of one of the following kinds: HoldsQuery, AlwaysQuery, NecessarilyQuery.
- Author:
- Sebastian Homann
-
Constructor Summary
ConstructorDescriptionSActionQuery
(PlFormula formula) Creates a new action query with the given propositional formula and no grounding requirements.SActionQuery
(PlFormula formula, Set<GroundingRequirement> requirements) Creates a new action query with the given propositional formula and grounding requirements. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the action signature of this action query.Retrieves the set of all grounded instances of this action query.Retrieves the propositional formula represented by this action query.Returns all grounding requirements, that have to be met, when this action query is grounded.Retrieves all actions that occur in action sequences within necessarily queries in this action query.Retrieves all inner atoms that occur in state formulas and actions within this action query.Returns all inner formulas that are contained in query propositions in this action query.Retrieves all inner variables that occur in state formulas and actions within this action query.Returns the signature of the language of this formula.toString()
-
Constructor Details
-
SActionQuery
Creates a new action query with the given propositional formula and no grounding requirements.- Parameters:
formula
- a propositional formula
-
SActionQuery
Creates a new action query with the given propositional formula and grounding requirements.- Parameters:
formula
- a propositional formularequirements
- a set of requirements
-
-
Method Details
-
getSignature
Description copied from interface:Formula
Returns the signature of the language of this formula.- Specified by:
getSignature
in interfaceFormula
- Returns:
- the signature of the language of this formula.
-
getFormula
Retrieves the propositional formula represented by this action query.- Returns:
- the formula represented by this action query.
-
getActionSignature
Retrieves the action signature of this action query.- Returns:
- the action signature of this action query.
-
getInnerFormulas
Returns all inner formulas that are contained in query propositions in this action query.- Returns:
- all inner formulas of this action query.
-
getInnerActions
-
getInnerAtoms
-
getInnerVariables
-
getGroundingRequirements
Returns all grounding requirements, that have to be met, when this action query is grounded.- Returns:
- a set of grounding requirements.
-
getAllGrounded
Retrieves the set of all grounded instances of this action query.- Returns:
- the set of all grounded instances of this causal rule.
-
toString
-