public class CurrentLocation extends ProtocolZero
Modifier and Type | Field and Description |
---|---|
static int |
X |
static int |
Y |
static int |
Z |
formatted, paramscan, priority
Constructor and Description |
---|
CurrentLocation() |
CurrentLocation(long period) |
CurrentLocation(long period,
long delay) |
CurrentLocation(priority_t priority) |
CurrentLocation(priority_t priority,
long period) |
CurrentLocation(priority_t priority,
long period,
long delay) |
Modifier and Type | Method and Description |
---|---|
double[] |
getCurrentLocation()
Returns Quagent's current location.
|
void |
setData(java.lang.String params)
Sets command response data.
|
protected void |
setOp() |
getPriority, hasTerminated, pause, resume, run, setExecutor, terminate, update
addTerminationListener, compareTo, getDelay, getExitCode, getFrequency, getID, getOp, getPeriod, getRuntime, toDataString, toString, verifyClient, waitForTerminate, whatAmI
public static final int X
public static final int Y
public static final int Z
public CurrentLocation(priority_t priority)
public CurrentLocation()
public CurrentLocation(priority_t priority, long period)
public CurrentLocation(long period)
public CurrentLocation(priority_t priority, long period, long delay)
public CurrentLocation(long period, long delay)
protected void setOp()
setOp
in class ProtocolZero
public double[] getCurrentLocation()
public void setData(java.lang.String params)
ProtocolZero
setData
in class ProtocolZero
params
- Data string. For all "data" messages it is identified by the form: