Package jmri

Interface VariableControlSpanBean

All Superinterfaces:
Comparable<NamedBean>, NamedBean, PropertyChangeProvider
All Known Subinterfaces:
Turnout
All Known Implementing Classes:
AbstractTurnout, AcelaTurnout, BiDiBTurnout, CbusTurnout, DCCppTurnout, EasyDccTurnout, EcosTurnout, EliteXNetTurnout, IpocsTurnout, JMRIClientTurnout, LnTurnout, MarklinTurnout, MqttTurnout, MrcTurnout, Mx1Turnout, NceTurnout, OlcbTurnout, RaspberryPiTurnout, SerialTurnout, SerialTurnout, SerialTurnout, SerialTurnout, SerialTurnout, SerialTurnout, SerialTurnout, SprogCSTurnout, SprogTurnout, SRCPTurnout, TamsTurnout, XBeeTurnout, XNetTurnout, XpaTurnout, Z21XNetTurnout, ZTC611XNetTurnout

public interface VariableControlSpanBean extends NamedBean
Interface for NamedBean indicating that the bean may control more than one output.

Originally just used by Turnout, this is available for any bean type with variable output span.

  • Method Details

    • getNumberControlBits

      Provide the number of input/output bits this bean controls.

      Typically just one, some systems provide outputs that control two outputs, e.g. C/MRI.

      Returns:
      the number of bits
    • setNumberControlBits

      Set number of input/output bits this bean controls.
      Parameters:
      num - the size of the input/output, currently 1 or 2