|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.rps.Transmitter
public class Transmitter
Represents a RPS transmitter, generally a locomotive.
The "ID" is used to identify this transmitter in RPS. The "rosterName" is the name (ID) of the roster entry this was originally created from.
| Method Summary | |
|---|---|
int |
getAddress()
|
String |
getID()
|
Measurement |
getLastMeasurement()
|
String |
getRosterName()
|
boolean |
isLongAddress()
|
boolean |
isPolled()
|
void |
notifyFailedThrottleRequest(DccLocoAddress address,
String reason)
Get notification that an attempt to request a throttle has failed |
void |
notifyThrottleFound(DccThrottle t)
Get notification that a throttle has been found as you requested. |
void |
setAddress(int address)
|
void |
setID(String id)
|
void |
setLastMeasurement(Measurement last)
|
void |
setLongAddress(boolean longAddress)
|
void |
setPolled(boolean polled)
|
void |
setRosterName(String rosterName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getID()
public void setID(String id)
public String getRosterName()
public void setRosterName(String rosterName)
public boolean isLongAddress()
public void setLongAddress(boolean longAddress)
public int getAddress()
public void setAddress(int address)
public boolean isPolled()
public void setPolled(boolean polled)
public void setLastMeasurement(Measurement last)
public Measurement getLastMeasurement()
public void notifyThrottleFound(DccThrottle t)
ThrottleListener
notifyThrottleFound in interface ThrottleListenert - An instantiation of the DccThrottle with the address requested.
public void notifyFailedThrottleRequest(DccLocoAddress address,
String reason)
ThrottleListener
notifyFailedThrottleRequest in interface ThrottleListeneraddress - DccLocoAddress of the failed loco request.reason - The reason why the throttle request failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||