public abstract class AbstractJSONEquivalenceOracle<A extends net.automatalib.ts.acceptors.DeterministicAcceptorTS<?,JSONSymbol>> extends AbstractRandomJSONConformance<A>
When performing an equivalence query, multiple partial equivalence queries
(see AbstractRandomJSONConformance) are performed, one per document
depth between 0 and the maximal depth.
It is possible to provide a collection of documents to explicitly test. These documents are tested before the randomly generated ones.
de.learnlib.api.oracle.EquivalenceOracle.DFAEquivalenceOracle<I>, de.learnlib.api.oracle.EquivalenceOracle.MealyEquivalenceOracle<I,O>, de.learnlib.api.oracle.EquivalenceOracle.RestrictedAutomatonEquivalenceOracle<I>, de.learnlib.api.oracle.EquivalenceOracle.ROCAEquivalenceOracle<I>, de.learnlib.api.oracle.EquivalenceOracle.VCAEquivalenceOracle<I>MAX_NUMBER_SYMBOLS_GIBBERISH| Constructor and Description |
|---|
AbstractJSONEquivalenceOracle(int numberTests,
boolean canGenerateInvalid,
int maxDocumentDepth,
int maxProperties,
int maxItems,
be.ac.umons.jsonschematools.JSONSchema schema,
Random random,
boolean shuffleKeys,
net.automatalib.words.Alphabet<JSONSymbol> alphabet,
Collection<org.json.JSONObject> documentsToTest) |
| Modifier and Type | Method and Description |
|---|---|
protected @Nullable de.learnlib.api.query.DefaultQuery<JSONSymbol,Boolean> |
findCounterExample(A hypothesis) |
findCounterExamplecanGenerateInvalid, checkDocument, checkWord, generateGibberish, getAlphabet, getMaxItems, getMaxProperties, getRandom, getSchema, numberTests, shouldShuffleKeyspublic AbstractJSONEquivalenceOracle(int numberTests,
boolean canGenerateInvalid,
int maxDocumentDepth,
int maxProperties,
int maxItems,
be.ac.umons.jsonschematools.JSONSchema schema,
Random random,
boolean shuffleKeys,
net.automatalib.words.Alphabet<JSONSymbol> alphabet,
Collection<org.json.JSONObject> documentsToTest)
protected @Nullable de.learnlib.api.query.DefaultQuery<JSONSymbol,Boolean> findCounterExample(A hypothesis)
Copyright © 2022. All rights reserved.