Exemplo n.º 1
0
 public void setActualDepth(int actualDepth) {
   if (!safeEquals(myActualDepth, actualDepth)) {
     myActualDepth = actualDepth;
     myListener.actualDepthChanged();
     myThresholdHelper.depthOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 2
0
 public void setActualDirection(int actualDirection) {
   if (!safeEquals(myActualDirection, actualDirection)) {
     myActualDirection = actualDirection;
     myListener.actualDirectionChanged();
     myThresholdHelper.directionOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 3
0
 public void setIgnoreDemandedSpeed(boolean ignore) {
   if (myIgnoreDemandedSpeed != ignore) {
     myIgnoreDemandedSpeed = ignore;
     myListener.demandedSpeedChanged();
     myThresholdHelper.speedOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 4
0
 public void setIgnoreDemandedDepth(boolean ignore) {
   if (myIgnoreDemandedDepth != ignore) {
     myIgnoreDemandedDepth = ignore;
     myListener.demandedDepthChanged();
     myThresholdHelper.depthOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 5
0
 public void setIgnoreDemandedDirection(boolean ignore) {
   if (myIgnoreDemandedDirection != ignore) {
     myIgnoreDemandedDirection = ignore;
     myListener.demandedDirectionChanged();
     myThresholdHelper.directionOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 6
0
 public void setSpeedThreshold(int speedThreshold) {
   if (!safeEquals(mySpeedThreshold, speedThreshold)) {
     mySpeedThreshold = speedThreshold;
     // listener is intentionally not called
     myThresholdHelper.speedOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 7
0
 public void setDepthThreshold(int depthThreshold) {
   if (!safeEquals(myDepthThreshold, depthThreshold)) {
     myDepthThreshold = depthThreshold;
     // no such method in listener -- see also below
     myThresholdHelper.depthOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 8
0
 public void setDemandedSpeed(int demandedSpeed) {
   if (!safeEquals(myDemandedSpeed, demandedSpeed)) {
     myDemandedSpeed = demandedSpeed;
     myListener.demandedSpeedChanged();
     myThresholdHelper.speedOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 9
0
 public void setDemandedDirection(int demandedDirection) {
   if (!safeEquals(myDemandedDirection, demandedDirection)) {
     myDemandedDirection = demandedDirection;
     myListener.demandedDirectionChanged();
     myThresholdHelper.directionOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 10
0
 public void setDemandedDepth(int demandedDepth) {
   if (!safeEquals(myDemandedDepth, demandedDepth)) {
     myDemandedDepth = demandedDepth;
     myListener.demandedDepthChanged();
     myThresholdHelper.depthOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 11
0
 public void setActualSpeed(int actualSpeed) {
   if (!safeEquals(myActualSpeed, actualSpeed)) {
     myActualSpeed = actualSpeed;
     myListener.actualSpeedChanged();
     myThresholdHelper.speedOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 12
0
 public void setDirectionThreshold(int directionThreshold) {
   if (!safeEquals(myDirectionThreshold, directionThreshold)) {
     myDirectionThreshold = directionThreshold;
     // do not call listener directly
     // myListener.directionThresholdChanged();
     myThresholdHelper.directionOnThresholdMayBeChanged();
   }
 }
Exemplo n.º 13
0
 public void setThresholdListener(ThresholdListener listener) {
   myThresholdHelper.setListener(listener);
 }