Class WpMethodEQOracle<I>

java.lang.Object
de.learnlib.oracle.equivalence.AbstractTestWordEQOracle<SPA<?,I>,I,Boolean>
de.learnlib.oracle.equivalence.spa.WpMethodEQOracle<I>
Type Parameters:
I - input symbol type
All Implemented Interfaces:
EquivalenceOracle<SPA<?,I>,I,Boolean>, TestWordGenerator<SPA<?,I>,I>

public class WpMethodEQOracle<I> extends AbstractTestWordEQOracle<SPA<?,I>,I,Boolean>
An SPA version of WpMethodEQOracle which generates test sequences based on the partial W-method for each procedure.
  • Constructor Details

    • WpMethodEQOracle

      public WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle)
      Constructor. Convenience method for WpMethodEQOracle(MembershipOracle, int) that sets lookahead to 1.
      Parameters:
      sulOracle - interface to the system under learning
    • WpMethodEQOracle

      public WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle, int lookahead)
      Constructor. Convenience method for WpMethodEQOracle(MembershipOracle, int, int) that sets expectedSize to 0.
      Parameters:
      sulOracle - interface to the system under learning
      lookahead - the maximum length of the "middle" part of the test cases
    • WpMethodEQOracle

      public WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle, int lookahead, int expectedSize)
      Constructor. Convenience method for WpMethodEQOracle(MembershipOracle, int, int, int) that sets batchSize to 1.
      Parameters:
      sulOracle - interface to the system under learning
      lookahead - the (minimal) maximum length of the "middle" part of the test cases
      expectedSize - the expected size of the system under learning
    • WpMethodEQOracle

      public WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle, int lookahead, int expectedSize, int batchSize)
      Constructor. Uses Math.max(lookahead, expectedSize - hypothesis.size() ) (for each procedural hypothesis) to determine the maximum length of sequences, that should be appended to the transition-cover part of the test sequence to account for the fact that the system under learning may have more states than the current hypothesis.
      Parameters:
      sulOracle - interface to the system under learning
      lookahead - the (minimal) maximum length of the "middle" part of the test cases
      expectedSize - the expected size of the system under learning
      batchSize - size of the batches sent to the membership oracle
      See Also:
  • Method Details