I
- input symbol typeD
- output domain type@ParametersAreNonnullByDefault public class DefaultQuery<I,D> extends AbstractQuery<I,D>
prefix, suffix
Constructor and Description |
---|
DefaultQuery(Query<I,?> query) |
DefaultQuery(Word<I> input) |
DefaultQuery(Word<I> input,
D output) |
DefaultQuery(Word<I> prefix,
Word<I> suffix) |
DefaultQuery(Word<I> prefix,
Word<I> suffix,
D output) |
Modifier and Type | Method and Description |
---|---|
void |
answer(D output)
Answers the query.
|
D |
getOutput() |
boolean |
isNormalized()
Checks if the query is normalized, i.e., if all the information is stored in the
suffix part
of the counterexample. |
String |
toString()
Returns the string representation of this query.
|
getPrefix, getSuffix, toStringWithAnswer
public boolean isNormalized()
suffix
part
of the counterexample.true
if the counterexample is normalized, false
otherwise.public void answer(@Nullable D output)
Query
MembershipOracle
, and only once per query to
process. Calling this method more than once may result in undefined behavior, possibly (but not necessarily)
throwing an exception.public String toString()
Query
toString
in class Query<I,D>
"Query[<prefix>|<suffix>]"
for queries not containing an answer or "Query[<prefix>|<suffix> / <answer>]"
if an answer may be specified.AbstractQuery.toStringWithAnswer(Object)
Copyright © 2019. All rights reserved.