Interface ConjunctGenerator

All Known Implementing Classes:
GeneratorCPQ, GeneratorRPQ

public interface ConjunctGenerator
Interface for generators that can generate a single random conjuncts of a larger query.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    generateConjunct(SelectivityGraph gSel, SelectivityType start, SelectivityType end, Variable source, Variable target, boolean star)
    Generates a single conjunct using the given selectivity graph and with the start of the conjunct being the given start selectivity type and the end of the conjunct the given end selectivity type.
  • Method Details

    • generateConjunct

      Conjunct generateConjunct(SelectivityGraph gSel, SelectivityType start, SelectivityType end, Variable source, Variable target, boolean star) throws GenerationException
      Generates a single conjunct using the given selectivity graph and with the start of the conjunct being the given start selectivity type and the end of the conjunct the given end selectivity type.
      Parameters:
      gSel - The selectivity graph to use (if required).
      start - The starting selectivity type of the conjunct to generate.
      end - The end selectivity type of the conjunct to generate.
      source - The source variable of the conjunct.
      target - The target variable of the conjunct.
      star - True if the conjunct should have a Kleene star above it.
      Returns:
      The randomly generated conjunct.
      Throws:
      GenerationException - When some exception occurred that prevented a conjunct from begin generated.