Package jmri

Class BeanSetting

All Implemented Interfaces:
BeanInterface, PropertyChangeFirer, PropertyChangeProvider, ExpectedState<NamedBean,​Integer>

public class BeanSetting
extends NamedBeanExpectedState<NamedBean>
Represent a NamedBean (such as a Turnout) and specific desired setting for it. These can be used to represent the setting a NamedBean has as part of a particular path through a layout, or a condition that has to be true as part of something.

Objects of this class are immutable, in that once created the selected bean and required setting cannot be changed. However, the value of the check() method does change, because it's a function of the current bean setting(s).