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() |
java.lang.String |
getCommandStr() |
short |
getCommandVal() |
java.lang.String |
getInfo() |
Maneuver |
getManeuver() |
int |
getRequestId() |
VehicleCommand.TYPE |
getType() |
java.lang.String |
getTypeStr() |
short |
getTypeVal() |
VehicleCommand |
setCalibTime(int calib_time) |
VehicleCommand |
setCommand(VehicleCommand.COMMAND command) |
VehicleCommand |
setCommandStr(java.lang.String command) |
VehicleCommand |
setCommandVal(short command) |
VehicleCommand |
setInfo(java.lang.String info) |
VehicleCommand |
setManeuver(Maneuver maneuver) |
VehicleCommand |
setRequestId(int request_id) |
VehicleCommand |
setType(VehicleCommand.TYPE type) |
VehicleCommand |
setTypeStr(java.lang.String type) |
VehicleCommand |
setTypeVal(short type) |
asJSON, asJSON, asMap, asXml, asXmlStripped, cloneMessage, cloneMessage, compareTo, copyFrom, decodeTupleList, dump, encodeTupleList, get, getAbbrev, getAgeInSeconds, getAsNumber, getAsString, getBitmask, getDate, getDouble, getDst, getDstEnt, getEntityName, getFieldNames, getFloat, getHeader, getHeaderValue, getInteger, getLong, getLongFieldName, getLongName, getMessage, getMessage, getMessageInfo, 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, parseJson, parseXml, payloadMD5, serialize, serialize, serialize, serializePayload, setBitMask, setDst, setDstEnt, setHeader, setMessageInfo, 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 java.lang.String getTypeStr()
public short getTypeVal()
public VehicleCommand setType(VehicleCommand.TYPE type)
type
- Type (enumerated)public VehicleCommand setTypeStr(java.lang.String type)
type
- Type (as a String)public VehicleCommand setTypeVal(short type)
type
- Type (integer value)public int getRequestId()
public VehicleCommand setRequestId(int request_id)
request_id
- Request IDpublic VehicleCommand.COMMAND getCommand()
public java.lang.String getCommandStr()
public short getCommandVal()
public VehicleCommand setCommand(VehicleCommand.COMMAND command)
command
- Command (enumerated)public VehicleCommand setCommandStr(java.lang.String command)
command
- Command (as a String)public VehicleCommand setCommandVal(short command)
command
- Command (integer value)public Maneuver getManeuver()
public VehicleCommand setManeuver(Maneuver maneuver)
maneuver
- Maneuverpublic int getCalibTime()
public VehicleCommand setCalibTime(int calib_time)
calib_time
- Calibration Time (s)public java.lang.String getInfo()
public VehicleCommand setInfo(java.lang.String info)
info
- Info