public interface StateMachine
A state machine - or labelled transition system - is defined by a tuple
(Q,S,q0,d) where:
Q is a set of states ;S is a finite set of labels ;q0 is the initial state of the machine ;d is a transition relation in Q x S x Q.
null may be used to denote silent transitions, that is
unobservable internal behavior of the machine, which can lead to non
determinism.
The rationals.Automaton is the main implementation for this interface.
| Modifier and Type | Method and Description |
|---|---|
Set<Object> |
alphabet()
Returns the alphabet -
S - of this state machine. |
Set<Transition> |
delta(Set<State> s)
Returns all transitions from a given set of states.
|
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 machine starting from a given
state and labelled with a given label.
|
Set<Transition> |
deltaMinusOne(State st)
Returns the set of states that can access the given states' set
st. |
StateFactory |
getStateFactory()
Retrieves the state factory associated to this SM.
|
Set<State> |
initials()
Returns the set of initial states for this machine.
|
Set<State> |
step(Set<State> s,
Object o)
Return the set of states accessible in one transition from given set of
states s and letter o.
|
Set<State> |
steps(Set<State> s,
List<?> word)
Return the set of states this SM will be in after reading the word from
start states
s. |
Set<Object> alphabet()
S - of this state machine.StateFactory getStateFactory()
Set<Transition> delta(State state, Object label)
state - a state of this SM.label - a label used in this SM.TransitionSet<Transition> delta(State state)
state - start stateSet<Transition> delta(Set<State> s)
s - a Set of State objectsSet<State> steps(Set<State> s, List<?> word)
s.s - the set of starting statesword - the word to read.null.Set<State> step(Set<State> s, Object o)
s - the starting stateso - the letternull.Set<State> initials()
Set<Transition> deltaMinusOne(State st)
st. This is the inverse relation of dst - end statesst. May be empty or
null.Copyright © 2018. All rights reserved.