public class JausMessageSet extends Object
Constructor and Description |
---|
JausMessageSet()
Creates a new instance of JausMessageSet
|
JausMessageSet(ArrayList binaryJaus)
Creates a new instance of JausMessageSet
|
JausMessageSet(Object source)
Creates a new instance of JausMessageSet
|
Modifier and Type | Method and Description |
---|---|
ArrayList |
generateBinary()
Generates a int[] containing a series of binary JAUS messages
corresponding to a JAXB JAUSMessageSet object
|
static int[] |
getCommandCodeBytes(jaus.jaxb.JAUSMessageType msg)
Returns the 2-byte command code for the message
|
static int |
getMessageType(jaus.jaxb.JAUSMessageType msg)
Returns an enumeration identifying the type of command contained in a JAUS message
|
void |
loadFromBinary(ArrayList binaryJaus)
Loads the JAXB object for a set of JAUS messages from a int[] containing the binary messages
|
static void |
main(String[] args)
Main method used for trouble shooting only
|
void |
marshal(File outFile)
Writes an XML (AVCL) to a designated file
|
void |
marshal(OutputStream stream)
Writes an XML (AVCL) to a designated output stream
|
void |
marshal(String outFile)
Writes an XML (AVCL) to a designated file
|
public static final int JAUSHEADERSIZE
public static final int NULLCOMMAND
public static final int SHUTDOWN
public static final int SETTIME
public static final int QUERYTIME
public static final int REPORTTIME
public static final int SETWRENCHEFFORT
public static final int QUERYWRENCHEFFORT
public static final int REPORTWRENCHEFFORT
public static final int SETGLOBALVECTOR
public static final int QUERYGLOBALVECTOR
public static final int REPORTGLOBALVECTOR
public static final int SETTRAVELSPEED
public static final int QUERYTRAVELSPEED
public static final int REPORTTRAVELSPEED
public static final int SETGLOBALWAYPOINT
public static final int QUERYGLOBALWAYPOINT
public static final int REPORTGLOBALWAYPOINT
public static final int QUERYHEARTBEATPULSE
public static final int REPORTHEARTBEATPULSE
public static final int QUERYPLATFORMSPECS
public static final int REPORTPLATFORMSPECS
public static final int QUERYGLOBALPOSE
public static final int REPORTGLOBALPOSE
public static final int QUERYVELOCITYSTATE
public static final int REPORTVELOCITYSTATE
public static final int[] NULLCOMMAND_BYTES
public static final int[] SHUTDOWN_BYTES
public static final int[] SETTIME_BYTES
public static final int[] QUERYTIME_BYTES
public static final int[] REPORTTIME_BYTES
public static final int[] SETWRENCHEFFORT_BYTES
public static final int[] QUERYWRENCHEFFORT_BYTES
public static final int[] REPORTWRENCHEFFORT_BYTES
public static final int[] SETGLOBALVECTOR_BYTES
public static final int[] QUERYGLOBALVECTOR_BYTES
public static final int[] REPORTGLOBALVECTOR_BYTES
public static final int[] SETTRAVELSPEED_BYTES
public static final int[] QUERYTRAVELSPEED_BYTES
public static final int[] REPORTTRAVELSPEED_BYTES
public static final int[] SETGLOBALWAYPOINT_BYTES
public static final int[] QUERYGLOBALWAYPOINT_BYTES
public static final int[] REPORTGLOBALWAYPOINT_BYTES
public static final int[] QUERYHEARTBEATPULSE_BYTES
public static final int[] REPORTHEARTBEATPULSE_BYTES
public static final int[] QUERYPLATFORMSPECS_BYTES
public static final int[] REPORTPLATFORMSPECS_BYTES
public static final int[] QUERYGLOBALPOSE_BYTES
public static final int[] REPORTGLOBALPOSE_BYTES
public static final int[] QUERYVELOCITYSTATE_BYTES
public static final int[] REPORTVELOCITYSTATE_BYTES
public JausMessageSet()
public JausMessageSet(ArrayList binaryJaus)
binaryJaus
- ArrayList containing a sequence of int[]s with JAUS messages in binary formpublic void loadFromBinary(ArrayList binaryJaus)
binaryJaus
- ArrayList containing a sequence of int[]s with JAUS messages in binary formpublic ArrayList generateBinary()
public void marshal(OutputStream stream)
stream
- OutputStream to whichout put is to be directedpublic void marshal(String outFile)
outFile
- filename and path to which output is to be directedpublic void marshal(File outFile)
outFile
- filename and path to which output is to be directedpublic static int[] getCommandCodeBytes(jaus.jaxb.JAUSMessageType msg)
msg
- JAXB object containing a single JAUS messagepublic static int getMessageType(jaus.jaxb.JAUSMessageType msg)
msg
- JAXB object containing a single JAUS messagepublic static void main(String[] args)
args
-