S
- state type of the automatonpublic interface StateIDs<S>
Modifier and Type | Method and Description |
---|---|
S |
getState(int id)
Return for a given id the state of the automaton identified by it.
|
int |
getStateId(S state)
Returns for a given state of the automaton an integer uniquely identifying the state.
|
int getStateId(S state)
state
- the state whose id should be retrievedIllegalArgumentException
- if state
does not belong to the automaton.S getState(int id)
id
- the id of the state to be returnedid
.IndexOutOfBoundsException
- if the given id
does not identify a state of the automaton.Copyright © 2020. All rights reserved.