Package jmri.jmrix.bachrus
Class SpeedoReply
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.AbstractMRReply
-
- jmri.jmrix.bachrus.SpeedoReply
-
- All Implemented Interfaces:
Message
public class SpeedoReply extends AbstractMRReply
Carries the reply to an SprogMessage The format of a KPF-Zeller message is*0000;V3.0%\nbut because we terminate on ";", it comes across asV3.0%\n*0000;
-
-
Field Summary
Fields Modifier and Type Field Description static intmaxSize-
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Constructor Summary
Constructors Constructor Description SpeedoReply()SpeedoReply(java.lang.String s)SpeedoReply(SpeedoReply m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()intgetSeries()Series numbers define the actual hardware, i.e. wheel circumference.intmatch(java.lang.String s)intmaxSize()protected intskipPrefix(int index)skipPrefix is not used at this point in time, but is defined as abstract in AbstractMRReply-
Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, isUnsolicited, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString, value
-
Methods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.Message
toMonitorString
-
-
-
-
Field Detail
-
maxSize
public static final int maxSize
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SpeedoReply
public SpeedoReply()
-
SpeedoReply
public SpeedoReply(SpeedoReply m)
-
SpeedoReply
public SpeedoReply(java.lang.String s)
-
-
Method Detail
-
getCount
public int getCount()
-
getSeries
public int getSeries()
Series numbers define the actual hardware, i.e. wheel circumference.- 0
- none, ignore
- 4
- Reader 40
- 5
- Reader 50
- 6
- Reader 60
- 103
- KPR-Zeller
- 200
- drM SPC200R
- Returns:
- type code for specific reply content
-
match
public int match(java.lang.String s)
- Overrides:
matchin classAbstractMRReply
-
maxSize
public int maxSize()
- Overrides:
maxSizein classAbstractMRReply
-
skipPrefix
protected int skipPrefix(int index)
skipPrefix is not used at this point in time, but is defined as abstract in AbstractMRReply- Specified by:
skipPrefixin classAbstractMRReply
-
-