Package jmri.jmrix.dcc4pc
Class Dcc4PcReporter
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.Comparable<NamedBean>
,PropertyChangeProvider
,IdTagListener
,NamedBean
,PhysicalLocationReporter
,Reporter
public class Dcc4PcReporter extends AbstractRailComReporter
Extend jmri.implementation.AbstractRailComReporter for Dcc4Pc Reporters. Implementation for providing status of rail com decoders at this reporter location.The reporter will decode the rail com packets and add the information to the rail com tag.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Dcc4PcReporter.RailComPacket
-
Nested classes/interfaces inherited from interface jmri.NamedBean
NamedBean.BadNameException, NamedBean.BadSystemNameException, NamedBean.BadUserNameException, NamedBean.DisplayOptions, NamedBean.DuplicateSystemNameException
-
Nested classes/interfaces inherited from interface jmri.PhysicalLocationReporter
PhysicalLocationReporter.Direction
-
-
Field Summary
Fields Modifier and Type Field Description static char
ACK
static char
ACK_1
static char
ACK_2
static char
ACK_3
static char
ACK_4
static char
ACK_5
static char
ACK_6
(package private) int
actual_load
(package private) int
actual_speed
(package private) int
actual_temperature
(package private) int
addr
(package private) int
addr_type
(package private) int
address_part_1
(package private) int
address_part_2
(package private) int
addressp1found
(package private) int
cvNumber
(package private) int
cvvalue
(package private) java.util.Hashtable<java.lang.Integer,java.lang.Integer>
cvValues
static char
ERROR
(package private) int
fuelLevel
(package private) int
location
(package private) int
packetLength
(package private) static int
packetseen
(package private) static int
packetsinerror
(package private) Dcc4PcReporter.RailComPacket[]
rcPacket
(package private) int
routing_no
(package private) int
state
(package private) int
waterLevel
-
Fields inherited from class jmri.implementation.AbstractReporter
_currentReport, _lastReport
-
Fields inherited from class jmri.implementation.AbstractNamedBean
listenerRefs, mSystemName, register
-
Fields inherited from interface jmri.NamedBean
DISPLAY_NAME_FORMAT, INCONSISTENT, PROPERTY_STATE, QUOTED_NAME_FORMAT, UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description Dcc4PcReporter(java.lang.String systemName, java.lang.String userName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) RailCom
decodeAddress()
(package private) void
decodeRailComInfo(Dcc4PcReporter.RailComPacket rc, int packetTypeCmd)
(package private) void
duplicatePacket(int dup)
(package private) int
getPacketLength()
int
getRailComState()
java.lang.String
getReport()
(package private) RailCom
provideTag(int address, int addr_type)
(package private) void
setPacket(int[] arraytemp, int dcc_addr_type, int dcc_addr, int cvNumber, int speed, int packetTypeCmd)
(package private) void
setPacketLength(int i)
void
setRailComState(int ori)
-
Methods inherited from class jmri.implementation.AbstractRailComReporter
getLocoAddress
-
Methods inherited from class jmri.implementation.AbstractIdTagReporter
describeState, getDirection, getPhysicalLocation, getPhysicalLocation, getState, notify, setState
-
Methods inherited from class jmri.implementation.AbstractReporter
getBeanType, getCurrentReport, getLastReport, setReport
-
Methods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, dispose, equals, firePropertyChange, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeListenersByReference, getPropertyKeys, getSystemName, getUserName, hashCode, removeProperty, removePropertyChangeListener, removePropertyChangeListener, setComment, setProperty, setUserName, toString, toStringSuffix, updateListenerRef, vetoableChange
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.NamedBean
addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, compareTo, dispose, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListenersByReference, getPropertyKeys, getRecommendedToolTip, getSystemName, getUsageReport, getUserName, removeProperty, setComment, setProperty, setUserName, toString, updateListenerRef, vetoableChange
-
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Field Detail
-
rcPacket
transient Dcc4PcReporter.RailComPacket[] rcPacket
-
state
int state
-
packetLength
int packetLength
-
addr
int addr
-
address_part_1
int address_part_1
-
address_part_2
int address_part_2
-
addr_type
int addr_type
-
actual_speed
int actual_speed
-
actual_load
int actual_load
-
actual_temperature
int actual_temperature
-
fuelLevel
int fuelLevel
-
waterLevel
int waterLevel
-
location
int location
-
routing_no
int routing_no
-
cvNumber
int cvNumber
-
cvvalue
int cvvalue
-
addressp1found
int addressp1found
-
packetseen
static int packetseen
-
packetsinerror
static int packetsinerror
-
cvValues
java.util.Hashtable<java.lang.Integer,java.lang.Integer> cvValues
-
ACK
public static final char ACK
- See Also:
- Constant Field Values
-
ACK_1
public static final char ACK_1
- See Also:
- Constant Field Values
-
ACK_2
public static final char ACK_2
- See Also:
- Constant Field Values
-
ACK_3
public static final char ACK_3
- See Also:
- Constant Field Values
-
ACK_4
public static final char ACK_4
- See Also:
- Constant Field Values
-
ACK_5
public static final char ACK_5
- See Also:
- Constant Field Values
-
ACK_6
public static final char ACK_6
- See Also:
- Constant Field Values
-
ERROR
public static final char ERROR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Dcc4PcReporter
public Dcc4PcReporter(java.lang.String systemName, java.lang.String userName)
-
-
Method Detail
-
setPacket
void setPacket(int[] arraytemp, int dcc_addr_type, int dcc_addr, int cvNumber, int speed, int packetTypeCmd)
-
duplicatePacket
void duplicatePacket(int dup)
-
setRailComState
public void setRailComState(int ori)
-
getRailComState
public int getRailComState()
-
getReport
public java.lang.String getReport()
-
setPacketLength
void setPacketLength(int i)
-
getPacketLength
int getPacketLength()
-
decodeRailComInfo
void decodeRailComInfo(Dcc4PcReporter.RailComPacket rc, int packetTypeCmd)
-
decodeAddress
RailCom decodeAddress()
-
provideTag
RailCom provideTag(int address, int addr_type)
-
-