Package jmri.jmrix.rps
Class Transmitter
- java.lang.Object
- 
- jmri.jmrix.rps.Transmitter
 
- 
- All Implemented Interfaces:
- java.util.EventListener,- ThrottleListener
 
 public class Transmitter extends java.lang.Object implements ThrottleListener Represents an 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. 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jmri.ThrottleListenerThrottleListener.DecisionType
 
- 
 - 
Field SummaryFields Modifier and Type Field Description (package private) intaddress(package private) java.lang.Stringid(package private) MeasurementlastMeasurement(package private) booleanlongAddress(package private) booleanneedReqThrottle(package private) booleanpolled(package private) java.lang.StringrosterName(package private) DccThrottlethrottle
 - 
Constructor SummaryConstructors Constructor Description Transmitter(java.lang.String id, boolean polled, int address, boolean longAddress)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleancheckInit()intgetAddress()java.lang.StringgetId()MeasurementgetLastMeasurement()java.lang.StringgetRosterName()(package private) DccThrottlegetThrottle()booleanisLongAddress()booleanisPolled()voidnotifyDecisionRequired(LocoAddress address, ThrottleListener.DecisionType question)No steal or share decisions made locallyvoidnotifyFailedThrottleRequest(LocoAddress address, java.lang.String reason)Get notification that an attempt to request a throttle has failed.voidnotifyThrottleFound(DccThrottle t)Get notification that a throttle has been found as requested.voidsetAddress(int address)voidsetId(java.lang.String id)voidsetLastMeasurement(Measurement last)voidsetLongAddress(boolean longAddress)voidsetPolled(boolean polled)voidsetRosterName(java.lang.String rosterName)
 
- 
- 
- 
Field Detail- 
idjava.lang.String id 
 - 
rosterNamejava.lang.String rosterName 
 - 
longAddressboolean longAddress 
 - 
addressint address 
 - 
polledboolean polled 
 - 
lastMeasurementMeasurement lastMeasurement 
 - 
throttleDccThrottle throttle 
 - 
needReqThrottleboolean needReqThrottle 
 
- 
 - 
Constructor Detail- 
TransmitterTransmitter(java.lang.String id, boolean polled, int address, boolean longAddress) 
 
- 
 - 
Method Detail- 
getIdpublic java.lang.String getId() 
 - 
setIdpublic void setId(java.lang.String id) 
 - 
getRosterNamepublic java.lang.String getRosterName() 
 - 
setRosterNamepublic void setRosterName(java.lang.String rosterName) 
 - 
isLongAddresspublic boolean isLongAddress() 
 - 
setLongAddresspublic void setLongAddress(boolean longAddress) 
 - 
getAddresspublic int getAddress() 
 - 
setAddresspublic void setAddress(int address) 
 - 
isPolledpublic boolean isPolled() 
 - 
setPolledpublic void setPolled(boolean polled) 
 - 
setLastMeasurementpublic void setLastMeasurement(Measurement last) 
 - 
getLastMeasurementpublic Measurement getLastMeasurement() 
 - 
getThrottleDccThrottle getThrottle() 
 - 
checkInitboolean checkInit() 
 - 
notifyThrottleFoundpublic void notifyThrottleFound(DccThrottle t) Description copied from interface:ThrottleListenerGet notification that a throttle has been found as requested.- Specified by:
- notifyThrottleFoundin interface- ThrottleListener
- Parameters:
- t- the throttle with the requested address
 
 - 
notifyFailedThrottleRequestpublic void notifyFailedThrottleRequest(LocoAddress address, java.lang.String reason) Description copied from interface:ThrottleListenerGet notification that an attempt to request a throttle has failed.- Specified by:
- notifyFailedThrottleRequestin interface- ThrottleListener
- Parameters:
- address- address of the failed request
- reason- failure cause
 
 - 
notifyDecisionRequiredpublic void notifyDecisionRequired(LocoAddress address, ThrottleListener.DecisionType question) No steal or share decisions made locallyGet notification that a throttle request is in use by another device, and a "steal", "share", or "steal/share" decision may be required. - Specified by:
- notifyDecisionRequiredin interface- ThrottleListener
- Parameters:
- address- The LocoAddress that needs the decision.
- question- The question being asked, steal / cancel, share / cancel, steal / share / cancel
 
 
- 
 
-