public class FindDistance extends ProtocolZero
Modifier and Type | Field and Description |
---|---|
static int |
X |
static int |
Y |
static int |
Z |
formatted, paramscan, priority
Constructor and Description |
---|
FindDistance(double[] point1,
double[] point2) |
FindDistance(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
Modifier and Type | Method and Description |
---|---|
double |
getDistance() |
double[] |
getPoint1() |
double[] |
getPoint2() |
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 FindDistance(double[] point1, double[] point2)
public FindDistance(double x1, double y1, double z1, double x2, double y2, double z2)
public double[] getPoint1()
public double[] getPoint2()
public double getDistance()
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:
protected void setOp()
setOp
in class ProtocolZero