@ParametersAreNonnullByDefault public abstract class AbstractQuery<I,D> extends Query<I,D>
Modifier and Type | Field and Description |
---|---|
protected net.automatalib.words.Word<I> |
prefix |
protected net.automatalib.words.Word<I> |
suffix |
Constructor and Description |
---|
AbstractQuery(Query<I,?> query) |
AbstractQuery(net.automatalib.words.Word<I> queryWord) |
AbstractQuery(net.automatalib.words.Word<I> prefix,
net.automatalib.words.Word<I> suffix) |
Modifier and Type | Method and Description |
---|---|
net.automatalib.words.Word<I> |
getPrefix()
Returns the prefix part of this query.
|
net.automatalib.words.Word<I> |
getSuffix()
Returns the suffix part of this query.
|
String |
toStringWithAnswer(D answer)
Returns the string representation of this query, including a possible answer.
|
protected final net.automatalib.words.Word<I> prefix
protected final net.automatalib.words.Word<I> suffix
public AbstractQuery(net.automatalib.words.Word<I> queryWord)
public AbstractQuery(net.automatalib.words.Word<I> prefix, net.automatalib.words.Word<I> suffix)
@Nonnull public net.automatalib.words.Word<I> getPrefix()
Query
@Nonnull public net.automatalib.words.Word<I> getSuffix()
Query
public String toStringWithAnswer(D answer)
AbstractQuery
for their toString method to ensure output consistency."Query[<prefix>|<suffix> / <answer>]"
. If the query has not been answered
yet, <answer>
will be null.Copyright © 2018. All rights reserved.