public class CartesianSensor2D extends ProtocolOne
Constructor and Description |
---|
CartesianSensor2D() |
CartesianSensor2D(long period) |
Modifier and Type | Method and Description |
---|---|
protected void |
addChildren()
P1 command should specify all nested ProtocolZero commands here.
|
double |
getBackwardDistance() |
int |
getBackwardEntity() |
double |
getForwardDistance() |
int |
getForwardEntity() |
double |
getLeftDistance() |
int |
getLeftEntity() |
double |
getRightDistance() |
int |
getRightEntity() |
void |
run() |
java.lang.String |
toString()
Terminates the command, letting unlocking all waiting data fetchers.
|
void |
update() |
hasTerminated, pause, resume, setExecutor, terminate
addTerminationListener, compareTo, getDelay, getExitCode, getFrequency, getID, getOp, getPeriod, getRuntime, toDataString, verifyClient, waitForTerminate, whatAmI
public CartesianSensor2D()
public CartesianSensor2D(long period)
protected void addChildren()
ProtocolOne
addChildren
in class ProtocolOne
public void run()
public double getForwardDistance()
public double getBackwardDistance()
public double getLeftDistance()
public double getRightDistance()
public int getForwardEntity()
public int getBackwardEntity()
public int getLeftEntity()
public int getRightEntity()
public java.lang.String toString()
Command