java.lang.Object
net.automatalib.automaton.mmlt.State<S,O>
- Type Parameters:
S- location typeO- output symbol type
A state configuration of an MMLT. A configuration is a tuple of an active location and the valuation of its timers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecrement(long delay) Returns a new state in which all timer values have been decreased by the specified amount.booleanlongReturns the entry distance.Returns the MMLT location of this state.Returns all timers that time out in the least number of time steps.inthashCode()booleanIndicates if this is the entry configuration of the location.booleanIndicates if this configuration is stable.Returns a copy ofthisstate with all timers reset to their initial values.toString()
-
Constructor Details
-
State
Initializes the entry configuration for the provided location, where all timers have their initial value.- Parameters:
location- the locationsortedTimers- the timers of the location, sorted by initial value
-
-
Method Details
-
getLocation
Returns the MMLT location of this state.- Returns:
- the location
-
getEntryDistance
public long getEntryDistance()Returns the entry distance. This is the minimal number of time steps required to reach this configuration from the entry configuration.- Returns:
- the entry distance
-
isEntryConfig
public boolean isEntryConfig()Indicates if this is the entry configuration of the location. A configuration is the entry configuration if all timers have their initial value.- Returns:
trueif this is the entry configuration,falseotherwise
-
isStableConfig
public boolean isStableConfig()Indicates if this configuration is stable. A configuration is stable if its entry distance is less than the initial value of the timer with the lowest initial value of the location. If the location has no timers, its only configuration is its entry configuration, which is always stable.- Returns:
trueif stable,falseotherwise
-
resetTimers
Returns a copy ofthisstate with all timers reset to their initial values.- Returns:
- the new state with all its timers reset
-
getNextExpiringTimers
Returns all timers that time out in the least number of time steps.- Returns:
- the timed out timers
-
decrement
Returns a new state in which all timer values have been decreased by the specified amount. This amount must be at most the time to the next timeout. If this sets a timer to zero, this timer is immediately reset to its initial value.- Parameters:
delay- the value by which to decrement the current timers- Returns:
- the new state with updated timers
-
equals
-
hashCode
public int hashCode() -
toString
-