Package org.ka2ddo.opentrac
Class TraceStep
java.lang.Object
org.ka2ddo.opentrac.TraceStep
- All Implemented Interfaces:
Serializable
This class defines one trace step in the OpenTracPathTrace element.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
computeBody
(byte[] buf, int offset) Append this element to a message bufferboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for the object.Get the string representation of the value of this element.
-
Field Details
-
SIZE
public static final int SIZENumber of bytes to encode a TraceStep.- See Also:
-
callsign
Callsign of relaying station. -
ssid
public int ssidSSID of relaying station. -
networkId
public byte networkIdNetwork of relaying station.
-
-
Constructor Details
-
TraceStep
public TraceStep()Construct an empty TraceStep. -
TraceStep
Construct a TraceStep specifying the relay step taken.- Parameters:
baseCallsign
- String callsign of the relaying stationssid
- int SSID of the relaying stationnetworkId
- the OpenTRAC network type used for the relay
-
-
Method Details
-
computeBody
public int computeBody(byte[] buf, int offset) Append this element to a message buffer- Parameters:
buf
- byte array to add the element tooffset
- starting index to store the element- Returns:
- index after the end of the stored element
-
valueString
Get the string representation of the value of this element.- Returns:
- value string
-
equals
Indicates whether some other object is "equal to" this one. -
hashCode
public int hashCode()Returns a hash code value for the object.
-