I - the input typeA - the automaton typeP - the property typeD - the output typepublic class LoggingPropertyOracle<I,A extends Output<I,D>,P,D> extends Object implements PropertyOracle<I,A,P,D>
| Modifier and Type | Class and Description |
|---|---|
static class |
LoggingPropertyOracle.DFALoggingPropertyOracle<I,P> |
static class |
LoggingPropertyOracle.MealyLoggingPropertyOracle<I,O,P> |
PropertyOracle.DFAPropertyOracle<I,P>, PropertyOracle.MealyPropertyOracle<I,O,P>InclusionOracle.DFAInclusionOracle<I>, InclusionOracle.MealyInclusionOracle<I,O>EquivalenceOracle.DFAEquivalenceOracle<I>, EquivalenceOracle.MealyEquivalenceOracle<I,O>| Constructor and Description |
|---|
LoggingPropertyOracle(PropertyOracle<I,A,P,D> propertyOracle)
Constructs a new LoggingPropertyOracle.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultQuery<I,D> |
disprove(A hypothesis,
Collection<? extends I> inputs)
Try to disprove this propertyOracle, and log whenever it is disproved.
|
DefaultQuery<I,D> |
doFindCounterExample(A hypothesis,
Collection<? extends I> inputs)
Try to find a counterexample to the given hypothesis, and log whenever such a spurious counterexample is found.
|
DefaultQuery<I,D> |
getCounterExample()
Returns the counterexample for the property if
PropertyOracle.isDisproved(), null otherwise. |
P |
getProperty()
Returns the property.
|
boolean |
isDisproved()
Returns whether the property is disproved.
|
void |
setProperty(P property)
Set the property.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindCounterExampleisCounterExamplepublic LoggingPropertyOracle(PropertyOracle<I,A,P,D> propertyOracle)
propertyOracle - the PropertyOracle to wrap around.public boolean isDisproved()
PropertyOracleisDisproved in interface PropertyOracle<I,A extends Output<I,D>,P,D>public void setProperty(P property)
PropertyOraclesetProperty in interface PropertyOracle<I,A extends Output<I,D>,P,D>property - the property to set.public P getProperty()
PropertyOraclegetProperty in interface PropertyOracle<I,A extends Output<I,D>,P,D>@Nullable public DefaultQuery<I,D> getCounterExample()
PropertyOraclePropertyOracle.isDisproved(), null otherwise.
If this method does not return null, a previous call to PropertyOracle.disprove(Output, Collection) must
have returned a DefaultQuery.getCounterExample in interface PropertyOracle<I,A extends Output<I,D>,P,D>PropertyOracle.isDisproved(), null otherwise.@Nullable public DefaultQuery<I,D> disprove(A hypothesis, Collection<? extends I> inputs) throws ModelCheckingException
disprove in interface PropertyOracle<I,A extends Output<I,D>,P,D>hypothesis - the hypothesis.inputs - the inputsDefaultQuery that is a counterexample the property, or null, if the property
could not be disproved.ModelCheckingExceptionPropertyOracle.disprove(Output, Collection)@Nullable public DefaultQuery<I,D> doFindCounterExample(A hypothesis, Collection<? extends I> inputs) throws ModelCheckingException
doFindCounterExample in interface PropertyOracle<I,A extends Output<I,D>,P,D>ModelCheckingExceptionEquivalenceOracle.findCounterExample(Object, Collection)Copyright © 2019. All rights reserved.