コード例 #1
0
 public void setActualDirection(int actualDirection) {
   if (!safeEquals(myActualDirection, actualDirection)) {
     myActualDirection = actualDirection;
     myListener.actualDirectionChanged();
     myThresholdHelper.directionOnThresholdMayBeChanged();
   }
 }
コード例 #2
0
 public void setIgnoreDemandedDirection(boolean ignore) {
   if (myIgnoreDemandedDirection != ignore) {
     myIgnoreDemandedDirection = ignore;
     myListener.demandedDirectionChanged();
     myThresholdHelper.directionOnThresholdMayBeChanged();
   }
 }
コード例 #3
0
 public void setDemandedDirection(int demandedDirection) {
   if (!safeEquals(myDemandedDirection, demandedDirection)) {
     myDemandedDirection = demandedDirection;
     myListener.demandedDirectionChanged();
     myThresholdHelper.directionOnThresholdMayBeChanged();
   }
 }
コード例 #4
0
 public void setDirectionThreshold(int directionThreshold) {
   if (!safeEquals(myDirectionThreshold, directionThreshold)) {
     myDirectionThreshold = directionThreshold;
     // do not call listener directly
     // myListener.directionThresholdChanged();
     myThresholdHelper.directionOnThresholdMayBeChanged();
   }
 }