|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractThrottleManager
jmri.jmrix.sprog.SprogThrottleManager
public class SprogThrottleManager
SPROG implementation of a ThrottleManager.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jmri.jmrix.AbstractThrottleManager |
|---|
AbstractThrottleManager.Addresses |
| Constructor Summary | |
|---|---|
SprogThrottleManager()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
addressTypeUnique()
Are there any ambiguous addresses (short vs long) on this system? |
boolean |
canBeLongAddress(int address)
Address 100 and above is a long address |
boolean |
canBeShortAddress(int address)
Address 127 and below is a short address |
boolean |
disposeThrottle(DccThrottle t,
ThrottleListener l)
Not for general use, see releaseThrottle
and dispatchThrottle. |
static SprogThrottleManager |
instance()
|
void |
requestThrottleSetup(LocoAddress address,
boolean control)
Abstract member to actually do the work of configuring a new throttle, usually via interaction with the DCC system |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SprogThrottleManager()
| Method Detail |
|---|
public static SprogThrottleManager instance()
public void requestThrottleSetup(LocoAddress address,
boolean control)
AbstractThrottleManager
requestThrottleSetup in class AbstractThrottleManagerpublic boolean canBeLongAddress(int address)
public boolean canBeShortAddress(int address)
public boolean addressTypeUnique()
public boolean disposeThrottle(DccThrottle t,
ThrottleListener l)
ThrottleManagerreleaseThrottle
and dispatchThrottle.
Dispose of object when finished it. This will free up hardware resource
Used for handling certain internal error conditions, where the object still exists but hardware is not associated with it.
After this, further usage of this Throttle object will result in a JmriException.
disposeThrottle in interface ThrottleManagerdisposeThrottle in class AbstractThrottleManagert - Throttle being releasedl - Throttle Listener releasing the throttle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||