Package jmri.jmrit.throttle
Interface ThrottleControllersUIContainersManager
- All Superinterfaces:
Iterable<ThrottleControllersUIContainer>
- All Known Implementing Classes:
ThrottleFrameManager
public interface ThrottleControllersUIContainersManager
extends Iterable<ThrottleControllersUIContainer>
An interface for managers of containers of throttle controllers user interface
(ThrottleFrameManager for Swing throttles for instance)
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new throttle controllerintReturn the number of active thottle controller containers for that throttle contrainer managerintReturn the number of throttle controllers for a LocoAddress, usefull to kno if a layout throttle object should actually be releasedReturn the thottle controller container at nth position in the listMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getNbThrottleControllersContainers
Return the number of active thottle controller containers for that throttle contrainer manager- Returns:
- the number of active thottle controller containers
-
createThrottleController
Create a new throttle controller- Returns:
- The newly created throttle controller
-
getThrottleControllersContainerAt
Return the thottle controller container at nth position in the list- Parameters:
n- position of the throttle controller container- Returns:
- a thottle controller container
-
getNumberOfEntriesFor
Return the number of throttle controllers for a LocoAddress, usefull to kno if a layout throttle object should actually be released- Parameters:
la- locoaddrress we're looking for- Returns:
- the number of throttle controllers for that LocoAddress
-