Package jmri

Interface ExpectedState<T,​S>

Type Parameters:
T - the type of object this contains the expected state for
S - the type of expected state this contains
All Known Implementing Classes:
BeanSetting, LayoutTrackExpectedState, NamedBeanExpectedState, NamedBeanExpectedValue

public interface ExpectedState<T,​S>
Record an object and its expected state within a specific scenario. This can be used in collections, for example as a routing through a set of turnouts, where the turnouts and their state when all turnouts are routed for that routing can be iterated over in a single loop with reference to a single collection.