public interface Rational
| Modifier and Type | Method and Description |
|---|---|
Set<State> |
accessibleAndCoAccessibleStates()
Returns the set of all states which are co-accessible and accessible in
this automaton.
|
Set<State> |
accessibleStates()
Returns the set of all accessible states in this automaton.
|
State |
addState(boolean initial,
boolean terminal)
Returns a new instance of state which will be initial and terminal or not
depending of parameters.
|
boolean |
addTransition(Transition transition)
Adds a new transition in this automaton if it is a new transition for
this automaton.
|
boolean |
addTransition(Transition transition,
String ifInvalid) |
Set<Object> |
alphabet()
Returns the alphabet X associated with this automaton.
|
Set<State> |
coAccessibleStates()
Returns the set of all co-accessible states in this automaton.
|
Set<Transition> |
delta()
Returns the set of all transitions of this automaton
|
Set<Transition> |
delta(State state)
Return all transitions from a State
|
Set<Transition> |
delta(State state,
Object label)
Returns the set of all transitions of this automaton starting from a
given state and labelled b a given label.
|
Set<Transition> |
deltaFrom(State from,
State to) |
Set<Transition> |
deltaMinusOne(State st) |
Set<Transition> |
deltaMinusOne(State state,
Object label)
Returns the set of all transitions of the reverse of this automaton
|
Set<State> |
initials()
Returns the set of initial states I associated with this
automaton.
|
Set<State> |
states()
Returns the set of states Q associated with this automaton.
|
Set<State> |
terminals()
Returns the set of terminal states T associated with this
automaton.
|
boolean |
validTransition(Transition transition) |
State addState(boolean initial, boolean terminal)
initial - if true, the new state will be initial; otherwise this state
will be non initial.terminal - if true, the new state will be terminal; otherwise this state
will be non terminal.TransitionSet<Object> alphabet()
Set<State> states()
StateSet<State> initials()
StateSet<State> terminals()
StateSet<State> accessibleStates()
StateSet<State> coAccessibleStates()
StateSet<State> accessibleAndCoAccessibleStates()
StateSet<Transition> delta()
TransitionSet<Transition> delta(State state, Object label)
state - a state of this automaton.label - a label used in this automaton.TransitionSet<Transition> delta(State state)
state - start stateSet<Transition> deltaFrom(State from, State to)
from - startto - endSet<Transition> deltaMinusOne(State state, Object label)
state - statelabel - labelTransitionboolean addTransition(Transition transition)
transition - the transition to add.boolean validTransition(Transition transition)
transition - transition to checktransition is null or if
transition = (q , l , q') and q or
q' does not belong to Q the set of the states
of this automaton.boolean addTransition(Transition transition, String ifInvalid)
transition - transition to addifInvalid - message to use in IllegalArgumentException if transition is
invalid; if null, no exception is thrownSet<Transition> deltaMinusOne(State st)
st - stCopyright © 2018. All rights reserved.