public class VehicleCommand extends IMCMessage
Modifier and Type | Class and Description |
---|---|
static class |
VehicleCommand.COMMAND |
static class |
VehicleCommand.TYPE |
Modifier and Type | Field and Description |
---|---|
static int |
ID_STATIC |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
VehicleCommand() |
VehicleCommand(IMCDefinition defs) |
VehicleCommand(IMCMessage msg) |
VehicleCommand(VehicleCommand.TYPE type,
int request_id,
VehicleCommand.COMMAND command,
Maneuver maneuver,
int calib_time,
java.lang.String info) |
Modifier and Type | Method and Description |
---|---|
static VehicleCommand |
clone(IMCMessage msg) |
static VehicleCommand |
create(java.lang.Object... values) |
int |
getCalibTime() |
VehicleCommand.COMMAND |
getCommand()
The type of command/action to be performed
|
java.lang.String |
getInfo() |
Maneuver |
getManeuver() |
int |
getRequestId() |
VehicleCommand.TYPE |
getType() |
VehicleCommand |
setCalibTime(int calib_time) |
VehicleCommand |
setCommand(short command) |
VehicleCommand |
setCommand(java.lang.String command) |
VehicleCommand |
setCommand(VehicleCommand.COMMAND command) |
VehicleCommand |
setInfo(java.lang.String info) |
VehicleCommand |
setManeuver(Maneuver maneuver) |
VehicleCommand |
setRequestId(int request_id) |
VehicleCommand |
setType(short type) |
VehicleCommand |
setType(java.lang.String type) |
VehicleCommand |
setType(VehicleCommand.TYPE type) |
asJSON, asXml, cloneMessage, cloneMessage, compareTo, copyFrom, decodeTupleList, dump, encodeTupleList, get, getAbbrev, getAsNumber, getAsString, getBitmask, getDate, getDouble, getDst, getDstEnt, getFieldNames, getFloat, getHeader, getHeaderValue, getInteger, getLong, getLongFieldName, getLongName, getMessage, getMessage, getMessageList, getMessageList, getMessageType, getMgid, getPayloadSize, getProtocolFactory, getRawData, getSize, getSourceName, getSrc, getSrcEnt, getString, getString, getTimestamp, getTimestampMillis, getTupleList, getTypeOf, getUnitsOf, getValue, getValues, hasFlag, hexdump, isNull, isPeriodic, main, makeImmutable, parseXml, payloadMD5, serialize, serialize, setBitMask, setDst, setDstEnt, setHeader, setMessageList, setSrc, setSrcEnt, setTimestamp, setTimestampMillis, setType, setValue, setValues, toString, validate
public static final int ID_STATIC
public VehicleCommand()
public VehicleCommand(IMCMessage msg)
public VehicleCommand(IMCDefinition defs)
public VehicleCommand(VehicleCommand.TYPE type, int request_id, VehicleCommand.COMMAND command, Maneuver maneuver, int calib_time, java.lang.String info)
public static VehicleCommand create(java.lang.Object... values)
public static VehicleCommand clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public VehicleCommand.TYPE getType()
public int getRequestId()
public VehicleCommand.COMMAND getCommand()
public Maneuver getManeuver()
public int getCalibTime()
public java.lang.String getInfo()
public VehicleCommand setType(VehicleCommand.TYPE type)
type
- Type (enumerated)public VehicleCommand setType(java.lang.String type)
type
- Type (as a String)public VehicleCommand setType(short type)
type
- Type (integer value)public VehicleCommand setRequestId(int request_id)
request_id
- Request IDpublic VehicleCommand setCommand(VehicleCommand.COMMAND command)
command
- Command (enumerated)public VehicleCommand setCommand(java.lang.String command)
command
- Command (as a String)public VehicleCommand setCommand(short command)
command
- Command (integer value)public VehicleCommand setManeuver(Maneuver maneuver)
maneuver
- Maneuverpublic VehicleCommand setCalibTime(int calib_time)
calib_time
- Calibration Time (s)public VehicleCommand setInfo(java.lang.String info)
info
- Info