public class JausBitReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MINYEAR |
| Constructor and Description |
|---|
JausBitReader()
Creates a new instance of JausBitReader
|
| Modifier and Type | Method and Description |
|---|---|
int |
addMessageHeader(int[] bytes,
jaus.jaxb.JAUSMessageType msg)
Creates the header portion of a JAUS message header based on the contents
of the int[] containing the binary JAUS message
|
static double |
convertSignedIntScaledInt(double min,
double max,
int itgr)
Utility function for generating the double value of a JAUS scaled integer from the integer
|
static double |
convertSignedShortScaledInt(double min,
double max,
int itgr)
Utility function for generating the double value of a JAUS scaled integer from the integer
|
static double |
convertUnsignedIntScaledInt(double min,
double max,
long itgr)
Utility function for generating the double value of a JAUS scaled integer from the integer
|
static double |
convertUnsignedShortScaledInt(double min,
double max,
int itgr)
Utility function for generating the double value of a JAUS scaled integer from the integer
|
jaus.jaxb.JAUSMessageType |
createEmptyMessage()
Creates an empty JAXB message list object
|
jaus.jaxb.JAUSMessageListType |
readFromBinary(ArrayList binaryJaus)
Generates a JAXB object for a set of JAUS messages from a int[] containing the binary messages
|
public static final int MINYEAR
public jaus.jaxb.JAUSMessageListType readFromBinary(ArrayList binaryJaus)
binaryJaus - ArrayList containing a sequence of int[]-encoded JAUS message in binary formJAUSMessageListTypepublic jaus.jaxb.JAUSMessageType createEmptyMessage()
throws JAXBException
JAUSMessageTypeJAXBExceptionpublic int addMessageHeader(int[] bytes,
jaus.jaxb.JAUSMessageType msg)
bytes - int[] containing a series of binary JAUS messagesmsg - JAXB object containing the JAUS message that is being generatedpublic static double convertUnsignedShortScaledInt(double min,
double max,
int itgr)
min - minimum value of the rangemax - maximum value of the rangeitgr - integer value value being used to generate the real valuepublic static double convertSignedShortScaledInt(double min,
double max,
int itgr)
min - minimum value of the rangemax - maximum value of the rangeitgr - integer value value being used to generate the real valuepublic static double convertUnsignedIntScaledInt(double min,
double max,
long itgr)
min - minimum value of the rangemax - maximum value of the rangeitgr - integer value value being used to generate the real valuepublic static double convertSignedIntScaledInt(double min,
double max,
int itgr)
min - minimum value of the rangemax - maximum value of the rangeitgr - integer value value being used to generate the real value