|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.aprs.XmitEncoding
public class XmitEncoding
This class specifies all the parameter variations associated with all possible encodings for subaudible codes, such as CTCSS, DCS, etc., including specifying whether narrowband or (comparatively) wideband FM deviation is used.
APRS encoding is as a letter code for the type followed by a three-digit zero-prefixed number for the frequency (dropping fractions) or digital code number. The letter code is uppercase for wideband FM deviation or lowercase for narrowband. The codes are:
T | analog tone transmission from mobile to repeater only |
C | analog tone transmission in both directions (does not support split tones) |
D | DCS code number |
Field Summary | |
---|---|
static java.lang.String[] |
CTCSS_FREQS
The standard TCS/CTCSS frequencies used for analog repeaters, in ascending frequency order. |
static java.lang.String[] |
DCS_CODES
The standard DCS (CDCSS) code numbers, in ascending number order. |
boolean |
isDigital
|
boolean |
isFullDuplex
|
boolean |
isInvalid
|
boolean |
isNarrowband
|
short |
toneCodeIndex
|
Constructor Summary | |
---|---|
XmitEncoding()
|
|
XmitEncoding(boolean isDigital,
boolean isFullDuplex,
short toneCodeIndex,
boolean isNarrowBand)
|
Method Summary | |
---|---|
void |
copyInto(XmitEncoding other)
|
static XmitEncoding |
decodeString(java.lang.String s)
|
java.lang.String |
encodedString()
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
static boolean |
isValidLookingSubTone(byte[] body,
int offset)
Test if a message body has a valid-looking subtone encoding for an APRS message. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean isNarrowband
public short toneCodeIndex
public boolean isDigital
public boolean isFullDuplex
public boolean isInvalid
public static final java.lang.String[] CTCSS_FREQS
public static final java.lang.String[] DCS_CODES
Constructor Detail |
---|
public XmitEncoding()
public XmitEncoding(boolean isDigital, boolean isFullDuplex, short toneCodeIndex, boolean isNarrowBand)
Method Detail |
---|
public java.lang.String encodedString()
public static XmitEncoding decodeString(java.lang.String s)
public void copyInto(XmitEncoding other)
public static boolean isValidLookingSubTone(byte[] body, int offset)
body
- byte array containing APRS message bodyoffset
- index in body array where subtone encoding should be present
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
Hashtable
public int hashCode()
java.util.Hashtable
.
hashCode
in class java.lang.Object
Object.equals(Object)
,
Hashtable
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |