Interface ThrottleControllersUIContainer

All Known Implementing Classes:
ThrottleWindow

An interface for containers of throttle controllers user interface (ThrottleWindow for Swing throttles for instance)
  • Method Details

    • getNbThrottlesControllers

      Return the number of thottle controlS containerS (ThrottleWindows forinstance)
      Returns:
      the number of active thottle controls containers.
    • newThrottleController

      Created a new throttle controller
      Returns:
      the newly created throttle controller
    • addThrottleControllerAt

      Adds an existing throttle controller to that container list at position n
      Parameters:
      tf - the throttle controller to add
      n - position that it will inserted at
    • removeThrottleController

      Remove a throttle controller from that container
      Parameters:
      tf - the throttle controller to add
    • getThrottleControllerAt

      Get the throttle controller at position n
      Parameters:
      n - position
      Returns:
      the throttle controller
    • emergencyStopAll

      Force estop all throttles managed by that controllers container
    • getNumberOfEntriesFor

      Get the number of usages of a particular Loco Address.
      Parameters:
      la - the Loco Address, can be null.
      Returns:
      0 if no usages, else number of AddressPanel usages.