S - the state type.I - the input type.D - the output type.public class SimulatorOmegaOracle<S,I,D> extends Object implements SingleQueryOmegaOracle<S,I,D>
OmegaQuerys by simulating an automaton.SimulatorOracle| Modifier and Type | Class and Description |
|---|---|
static class |
SimulatorOmegaOracle.DFASimulatorOmegaOracle<S,I> |
static class |
SimulatorOmegaOracle.MealySimulatorOmegaOracle<S,I,O> |
SingleQueryOmegaOracle.SingleQueryOmegaOracleDFA<S,I>, SingleQueryOmegaOracle.SingleQueryOmegaOracleMealy<S,I,O>OmegaMembershipOracle.DFAOmegaMembershipOracle<S,I>, OmegaMembershipOracle.MealyOmegaMembershipOracle<S,I,O>| Constructor and Description |
|---|
SimulatorOmegaOracle(A automaton,
SimulatorOracle<I,D> simulatorOracle)
Constructs a new
SimulatorOmegaOracle. |
| Modifier and Type | Method and Description |
|---|---|
Pair<D,Integer> |
answerQuery(Word<I> prefix,
Word<I> loop,
int repeat)
Returns an answer for an
OmegaQuery. |
MembershipOracle<I,D> |
getMembershipOracle()
Gets the
SimulatorOracle used to answer Querys. |
boolean |
isSameState(Word<I> input1,
S s1,
Word<I> input2,
S s2)
Test for state equivalence by simply invoking
Object.equals(Object). |
void |
processQueries(Collection<? extends OmegaQuery<I,D>> queries) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessQueryasOraclepublic SimulatorOmegaOracle(A automaton,
SimulatorOracle<I,D> simulatorOracle)
SimulatorOmegaOracle.A - the automaton type.automaton - the automaton to simulate.simulatorOracle - the SimulatorOracle used to answer Querys.public MembershipOracle<I,D> getMembershipOracle()
SimulatorOracle used to answer Querys.getMembershipOracle in interface OmegaMembershipOracle<S,I,D>public boolean isSameState(Word<I> input1, S s1, Word<I> input2, S s2)
Object.equals(Object).isSameState in interface OmegaMembershipOracle<S,I,D>OmegaMembershipOracle.isSameState(Word, Object, Word, Object)public void processQueries(Collection<? extends OmegaQuery<I,D>> queries)
processQueries in interface OmegaMembershipOracle<S,I,D>processQueries in interface SingleQueryOmegaOracle<S,I,D>public Pair<D,Integer> answerQuery(Word<I> prefix, Word<I> loop, int repeat)
OmegaQuery.
The output is obtained through the SimulatorOracle, while the states are obtained by means of creating
two access sequences to states in the simulated automaton.answerQuery in interface OmegaMembershipOracle<S,I,D>answerQuery in interface OmegaQueryAnswerer<S,I,D>OmegaQueryAnswerer.answerQuery(Word, Word, int)Copyright © 2020. All rights reserved.