Interface InitializablePQuery

All Superinterfaces:
PQuery, PQueryHeader, PTraceable

public interface InitializablePQuery extends PQuery
Adds extra methods to the PQuery interface to initialize its contents.
  • Method Details

    • setStatus

      void setStatus(PQuery.PQueryStatus status)
      Sets the query status. Only applicable if the pattern is still uninitialized.
      Parameters:
      status - the new status
    • addError

      void addError(PProblem problem)
      Adds a detected error. Only applicable if the pattern is still uninitialized.
      Parameters:
      problem - the new problem
    • initializeBodies

      void initializeBodies(Set<PBody> bodies)
      Sets up the bodies of the pattern. Only applicable if the pattern is still uninitialized.
      Parameters:
      bodies -
      Throws:
      InterpreterRuntimeException
    • addAnnotation

      void addAnnotation(PAnnotation annotation)
      Adds an annotation to the specification. Only applicable if the pattern is still uninitialized.
      Parameters:
      annotation -