java.lang.Object
net.automatalib.automaton.helper.SimpleStateIDs<S>
- All Implemented Interfaces:
StateIDs<S>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetState(int id) Return for a given id the state of the automaton identified by it.intgetStateId(S state) Returns for a given state of the automaton an integer uniquely identifying the state.
-
Constructor Details
-
SimpleStateIDs
-
-
Method Details
-
getStateId
Description copied from interface:StateIDsReturns for a given state of the automaton an integer uniquely identifying the state. The returned ids should be within the range of the number of states of the automaton so that they can be used for array-based indexing.- Specified by:
getStateIdin interfaceStateIDs<S>- Parameters:
state- the state whose id should be retrieved- Returns:
- the (positive) id of the given automaton state
-
getState
Description copied from interface:StateIDsReturn for a given id the state of the automaton identified by it.
-