Class HoldsQuery

All Implemented Interfaces:
Comparable<Proposition>, Formula, Atom, ClassicalFormula, Conjunctable, Disjunctable, Invertable, ProbabilityAware, SimpleLogicalFormula

public class HoldsQuery extends QueryProposition
This class represents a holds query in the action query language S. Such queries have the following form: "holds F where F is a state formula".
Author:
Sebastian Homann
  • Constructor Details

    • HoldsQuery

      public HoldsQuery(FolFormula formula)
      Creates a new holds query with the given inner formula.
      Parameters:
      formula - the inner formula of this newly created holds query.
  • Method Details

    • substitute

      public QueryProposition substitute(Map<? extends Term<?>,? extends Term<?>> map)
      Description copied from class: QueryProposition
      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.
      Specified by:
      substitute in class QueryProposition
      Parameters:
      map - a map from variables to constants.
      Returns:
      a new query proposition.
    • toString

      public String toString()
      Specified by:
      toString in class QueryProposition
    • getInnerActions

      public Set<FolAction> getInnerActions()
      Description copied from class: QueryProposition
      Returns 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:
      getInnerActions in class QueryProposition
      Returns:
      the set of all actions contained in this query proposition.
    • getVariables

      public Set<Variable> getVariables()
      Specified by:
      getVariables in class QueryProposition
      Returns:
      all variables occurring in inner formulas and actions of this query proposition.