Package jmri.jmrix
Class AbstractThrottleManager.Addresses
- java.lang.Object
-
- jmri.jmrix.AbstractThrottleManager.Addresses
-
- Enclosing class:
- AbstractThrottleManager
protected static class AbstractThrottleManager.Addresses extends java.lang.Object
This subClass keeps track of which loco address have been requested and by whom. It primarily uses an increment count to keep track of all the Addresses in use as not all external code will have been refactored over to use the new disposeThrottle.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.ArrayList<ThrottleListener>
listeners
(package private) BasicRosterEntry
re
(package private) DccThrottle
throttle
(package private) int
useActiveCount
-
Constructor Summary
Constructors Modifier Constructor Description protected
Addresses(DccThrottle throttle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addListener(ThrottleListener l)
(package private) boolean
containsListener(ThrottleListener l)
(package private) void
decrementUse()
(package private) BasicRosterEntry
getRosterEntry()
(package private) DccThrottle
getThrottle()
(package private) int
getUseCount()
(package private) void
incrementUse()
(package private) void
removeListener(ThrottleListener l)
(package private) void
setRosterEntry(BasicRosterEntry _re)
(package private) void
setThrottle(DccThrottle throttle)
-
-
-
Field Detail
-
useActiveCount
int useActiveCount
-
throttle
DccThrottle throttle
-
listeners
java.util.ArrayList<ThrottleListener> listeners
-
-
Constructor Detail
-
Addresses
protected Addresses(DccThrottle throttle)
-
-
Method Detail
-
incrementUse
void incrementUse()
-
decrementUse
void decrementUse()
-
getUseCount
int getUseCount()
-
getThrottle
DccThrottle getThrottle()
-
setThrottle
void setThrottle(DccThrottle throttle)
-
setRosterEntry
void setRosterEntry(BasicRosterEntry _re)
-
getRosterEntry
BasicRosterEntry getRosterEntry()
-
addListener
void addListener(ThrottleListener l)
-
removeListener
void removeListener(ThrottleListener l)
-
containsListener
boolean containsListener(ThrottleListener l)
-
-