Package org.ka2ddo.opentrac
Class OpenTracMapSymbol
java.lang.Object
org.ka2ddo.opentrac.OpenTracElement
org.ka2ddo.opentrac.OpenTracByteArray
org.ka2ddo.opentrac.OpenTracMapSymbol
- All Implemented Interfaces:
Serializable
This class specifies a map symbol element of an OpenTRAC entity within an
OpenTRAC message.
- See Also:
-
Field Summary
Fields inherited from class org.ka2ddo.opentrac.OpenTracElement
id
-
Constructor Summary
ConstructorDescriptionCreate an empty OpenTracMapSymbol element (no symbol value yet).OpenTracMapSymbol
(int type, byte[] body, int offset, int length) Create an OpenTracMapSymbol element from the byte stream (presumably from an encoded OpenTRAC message).OpenTracMapSymbol
(String symbolId) Create an OpenTracMapSymbol element from the ASCII text representation of a map code, using either the dotted-decimal format or the packed hexadecimal format. -
Method Summary
Modifier and TypeMethodDescriptionGet the string representation of the value of this element.Methods inherited from class org.ka2ddo.opentrac.OpenTracByteArray
computeBody, equals, equalsElement, getByteArray, hashCode, length, toString
Methods inherited from class org.ka2ddo.opentrac.OpenTracElement
getId
-
Constructor Details
-
OpenTracMapSymbol
public OpenTracMapSymbol()Create an empty OpenTracMapSymbol element (no symbol value yet). -
OpenTracMapSymbol
public OpenTracMapSymbol(int type, byte[] body, int offset, int length) Create an OpenTracMapSymbol element from the byte stream (presumably from an encoded OpenTRAC message).- Parameters:
type
- OpenTRAC element type code from OpenTracTypesbody
- byte array to extract symbol code fromoffset
- starting index in byte array for extractionlength
- length in bytes to extract- See Also:
-
OpenTracMapSymbol
Create an OpenTracMapSymbol element from the ASCII text representation of a map code, using either the dotted-decimal format or the packed hexadecimal format.- Parameters:
symbolId
- symbol code String
-
-
Method Details
-
valueString
Get the string representation of the value of this element.- Overrides:
valueString
in classOpenTracByteArray
- Returns:
- value string
-