public class Loiter extends Maneuver
Modifier and Type | Class and Description |
---|---|
static class |
Loiter.DIRECTION |
static class |
Loiter.SPEED_UNITS |
static class |
Loiter.TYPE |
static class |
Loiter.Z_UNITS |
Modifier and Type | Field and Description |
---|---|
static int |
ID_STATIC |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
Loiter() |
Loiter(IMCDefinition defs) |
Loiter(IMCMessage msg) |
Loiter(int timeout,
double lat,
double lon,
float z,
Loiter.Z_UNITS z_units,
int duration,
float speed,
Loiter.SPEED_UNITS speed_units,
Loiter.TYPE type,
float radius,
float length,
double bearing,
Loiter.DIRECTION direction,
java.lang.String custom) |
Modifier and Type | Method and Description |
---|---|
static Loiter |
clone(IMCMessage msg) |
static Loiter |
create(java.lang.Object... values) |
double |
getBearing() |
java.util.LinkedHashMap<java.lang.String,java.lang.String> |
getCustom() |
Loiter.DIRECTION |
getDirection() |
java.lang.String |
getDirectionStr() |
short |
getDirectionVal() |
int |
getDuration() |
double |
getLat() |
double |
getLength() |
double |
getLon() |
double |
getRadius() |
double |
getSpeed() |
Loiter.SPEED_UNITS |
getSpeedUnits() |
java.lang.String |
getSpeedUnitsStr() |
short |
getSpeedUnitsVal() |
int |
getTimeout() |
Loiter.TYPE |
getType() |
java.lang.String |
getTypeStr() |
short |
getTypeVal() |
double |
getZ() |
Loiter.Z_UNITS |
getZUnits() |
java.lang.String |
getZUnitsStr() |
short |
getZUnitsVal() |
Loiter |
setBearing(double bearing) |
Loiter |
setCustom(java.util.LinkedHashMap<java.lang.String,?> custom) |
Loiter |
setCustom(java.lang.String custom) |
Loiter |
setDirection(Loiter.DIRECTION direction) |
Loiter |
setDirectionStr(java.lang.String direction) |
Loiter |
setDirectionVal(short direction) |
Loiter |
setDuration(int duration) |
Loiter |
setLat(double lat) |
Loiter |
setLength(double length) |
Loiter |
setLon(double lon) |
Loiter |
setRadius(double radius) |
Loiter |
setSpeed(double speed) |
Loiter |
setSpeedUnits(Loiter.SPEED_UNITS speed_units) |
Loiter |
setSpeedUnitsStr(java.lang.String speed_units) |
Loiter |
setSpeedUnitsVal(short speed_units) |
Loiter |
setTimeout(int timeout) |
Loiter |
setType(Loiter.TYPE type) |
Loiter |
setTypeStr(java.lang.String type) |
Loiter |
setTypeVal(short type) |
Loiter |
setZ(double z) |
Loiter |
setZUnits(Loiter.Z_UNITS z_units) |
Loiter |
setZUnitsStr(java.lang.String z_units) |
Loiter |
setZUnitsVal(short z_units) |
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 Loiter()
public Loiter(IMCMessage msg)
public Loiter(IMCDefinition defs)
public Loiter(int timeout, double lat, double lon, float z, Loiter.Z_UNITS z_units, int duration, float speed, Loiter.SPEED_UNITS speed_units, Loiter.TYPE type, float radius, float length, double bearing, Loiter.DIRECTION direction, java.lang.String custom)
public static Loiter create(java.lang.Object... values)
public static Loiter clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public int getTimeout()
public Loiter setTimeout(int timeout)
timeout
- Timeout (s)public double getLat()
public Loiter setLat(double lat)
lat
- Latitude WGS-84 (rad)public double getLon()
public Loiter setLon(double lon)
lon
- Longitude WGS-84 (rad)public double getZ()
public Loiter setZ(double z)
z
- Z Reference (m)public Loiter.Z_UNITS getZUnits()
public java.lang.String getZUnitsStr()
public short getZUnitsVal()
public Loiter setZUnits(Loiter.Z_UNITS z_units)
z_units
- Z Units (enumerated)public Loiter setZUnitsStr(java.lang.String z_units)
z_units
- Z Units (as a String)public Loiter setZUnitsVal(short z_units)
z_units
- Z Units (integer value)public int getDuration()
public Loiter setDuration(int duration)
duration
- Duration (s)public double getSpeed()
public Loiter setSpeed(double speed)
speed
- Speedpublic Loiter.SPEED_UNITS getSpeedUnits()
public java.lang.String getSpeedUnitsStr()
public short getSpeedUnitsVal()
public Loiter setSpeedUnits(Loiter.SPEED_UNITS speed_units)
speed_units
- Speed Units (enumerated)public Loiter setSpeedUnitsStr(java.lang.String speed_units)
speed_units
- Speed Units (as a String)public Loiter setSpeedUnitsVal(short speed_units)
speed_units
- Speed Units (integer value)public Loiter.TYPE getType()
public java.lang.String getTypeStr()
public short getTypeVal()
public Loiter setType(Loiter.TYPE type)
type
- Loiter Type (enumerated)public Loiter setTypeStr(java.lang.String type)
type
- Loiter Type (as a String)public Loiter setTypeVal(short type)
type
- Loiter Type (integer value)public double getRadius()
public Loiter setRadius(double radius)
radius
- Radius (m)public double getLength()
public Loiter setLength(double length)
length
- Length (m)public double getBearing()
public Loiter setBearing(double bearing)
bearing
- Bearing (rad)public Loiter.DIRECTION getDirection()
public java.lang.String getDirectionStr()
public short getDirectionVal()
public Loiter setDirection(Loiter.DIRECTION direction)
direction
- Direction (enumerated)public Loiter setDirectionStr(java.lang.String direction)
direction
- Direction (as a String)public Loiter setDirectionVal(short direction)
direction
- Direction (integer value)public java.util.LinkedHashMap<java.lang.String,java.lang.String> getCustom()
public Loiter setCustom(java.util.LinkedHashMap<java.lang.String,?> custom)
custom
- Custom settings for maneuver (tuplelist)public Loiter setCustom(java.lang.String custom)