public class TraceStep
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
callsign
Callsign of relaying station.
|
byte |
networkId
Network of relaying station.
|
static int |
SIZE
Number of bytes to encode a TraceStep.
|
int |
ssid
SSID of relaying station.
|
Constructor and Description |
---|
TraceStep()
Construct an empty TraceStep.
|
TraceStep(java.lang.String baseCallsign,
int ssid,
byte networkId)
Construct a TraceStep specifying the relay step taken.
|
Modifier and Type | Method and Description |
---|---|
int |
computeBody(byte[] buf,
int offset)
Append this element to a message buffer
|
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.
|
java.lang.String |
valueString()
Get the string representation of the value of this element.
|
public static final int SIZE
public java.lang.String callsign
public int ssid
public byte networkId
public TraceStep()
public TraceStep(java.lang.String baseCallsign, int ssid, byte networkId)
baseCallsign
- String callsign of the relaying stationssid
- int SSID of the relaying stationnetworkId
- the OpenTRAC network type used for the relaypublic int computeBody(byte[] buf, int offset)
buf
- byte array to add the element tooffset
- starting index to store the elementpublic java.lang.String valueString()
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.public int hashCode()
hashCode
in class java.lang.Object
equals(Object)