Class SimpleDeterministicAbstractions.IntAbstraction<S,A extends SimpleDeterministicAutomaton<S,?>>
- java.lang.Object
-
- net.automatalib.automaton.abstraction.SimpleDeterministicAbstractions.IntAbstraction<S,A>
-
- Type Parameters:
S- state typeA- automaton type
- All Implemented Interfaces:
FiniteRepresentation,SimpleDeterministicAutomaton.IntAbstraction
- Direct Known Subclasses:
SimpleDeterministicAbstractions.StateIntAbstraction
- Enclosing interface:
- SimpleDeterministicAbstractions
public static class SimpleDeterministicAbstractions.IntAbstraction<S,A extends SimpleDeterministicAutomaton<S,?>> extends Object implements SimpleDeterministicAutomaton.IntAbstraction
Base class implementing the default way of obtaining an integer abstraction from an automaton, i.e., by mapping states to integers and vice versa using theStateIDsmapping obtained viaSimpleAutomaton.stateIDs().
-
-
Field Summary
Fields Modifier and Type Field Description protected Aautomatonprotected StateIDs<S>stateIds-
Fields inherited from interface net.automatalib.automaton.simple.SimpleDeterministicAutomaton.IntAbstraction
INVALID_STATE
-
-
Constructor Summary
Constructors Constructor Description IntAbstraction(A automaton)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIntInitialState()Retrieves the initial state of the (abstracted) automaton as an integer.protected SintToState(int stateId)protected @Nullable SsafeIntToState(int stateId)protected intsafeStateToInt(@Nullable S state)intsize()Returns the number of entities required to represent this system.protected intstateToInt(S state)
-
-
-
Field Detail
-
automaton
protected final A extends SimpleDeterministicAutomaton<S,?> automaton
-
-
Constructor Detail
-
IntAbstraction
public IntAbstraction(A automaton)
-
-
Method Detail
-
size
public int size()
Description copied from interface:FiniteRepresentationReturns the number of entities required to represent this system.- Specified by:
sizein interfaceFiniteRepresentation- Returns:
- the number of entities required to represent this system
-
intToState
protected final S intToState(int stateId)
-
getIntInitialState
public int getIntInitialState()
Description copied from interface:SimpleDeterministicAutomaton.IntAbstractionRetrieves the initial state of the (abstracted) automaton as an integer. If the automaton has no initial state,SimpleDeterministicAutomaton.IntAbstraction.INVALID_STATEis returned.- Specified by:
getIntInitialStatein interfaceSimpleDeterministicAutomaton.IntAbstraction- Returns:
- the integer representing the initial state, or
SimpleDeterministicAutomaton.IntAbstraction.INVALID_STATE.
-
stateToInt
protected final int stateToInt(S state)
-
-