Class TraceStep

java.lang.Object
org.ka2ddo.opentrac.TraceStep
All Implemented Interfaces:
Serializable

public class TraceStep extends Object implements Serializable
This class defines one trace step in the OpenTracPathTrace element.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Callsign of relaying station.
    byte
    Network of relaying station.
    static final int
    Number of bytes to encode a TraceStep.
    int
    SSID of relaying station.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct an empty TraceStep.
    TraceStep(String baseCallsign, int ssid, byte networkId)
    Construct a TraceStep specifying the relay step taken.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    computeBody(byte[] buf, int offset)
    Append this element to a message buffer
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for the object.
    Get the string representation of the value of this element.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TraceStep

      public TraceStep()
      Construct an empty TraceStep.
    • TraceStep

      public TraceStep(String baseCallsign, int ssid, byte networkId)
      Construct a TraceStep specifying the relay step taken.
      Parameters:
      baseCallsign - String callsign of the relaying station
      ssid - int SSID of the relaying station
      networkId - 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 to
      offset - starting index to store the element
      Returns:
      index after the end of the stored element
    • valueString

      public String valueString()
      Get the string representation of the value of this element.
      Returns:
      value string
    • equals

      public boolean equals(Object obj)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      obj - the reference object with which to compare.
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
      See Also: