setMaxSpeed(string, double) -> None

        Sets a new maximum allowed speed on the lane in m/s.
7459
def setMaxSpeed(self, laneID, speed):
        
        self._connection._sendDoubleCmd(
            tc.CMD_SET_LANE_VARIABLE, tc.VAR_MAXSPEED, laneID, speed)
371920
private void updateMinMax(NumberVector featureVector, double[] minima, double[] maxima) {
    assert (minima.length == featureVector.getDimensionality());
    for(int d = 0; d < featureVector.getDimensionality(); d++) {
      double v = featureVector.doubleValue(d);
      if(v == v) { // Avoid NaN.
        maxima[d] = MathUtil.max(v, maxima[d]);
        minima[d] = MathUtil.min(v, minima[d]);
      }
    }
  }
120326
public void setMinRate(double min)
    {
        if(min <= 0 || Double.isNaN(min) || Double.isInfinite(min))
            throw new RuntimeException("minRate should be positive, not " + min);
        this.min = min;
    }
710554
public void setMax (BigDecimal max) {
		if (min.compareTo(max) > 0) throw new IllegalArgumentException("min can't be > max");

		this.max = max;

		if (current.compareTo(max) > 0) {
			current = max.setScale(scale, BigDecimal.ROUND_HALF_UP);
			spinner.notifyValueChanged(spinner.isProgrammaticChangeEvents());
		}
	}
531621
private void updateMaxMin(IntervalRBTreeNode<T> n, IntervalRBTreeNode<T> c) {
    if (c != null) {
      if (n.max < c.max) {
        n.max = c.max;
      }
      if (n.min > c.min) {
        n.min = c.min;
      }
    }
  }
565933
public AABBd setMax(double maxX, double maxY, double maxZ) {
        this.maxX = maxX;
        this.maxY = maxY;
        this.maxZ = maxZ;
        return this;
    }
746550
public boolean setFanSpeed(int speed) throws CommandExecutionException {
        if (speed < 0 || speed > 100) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_PARAMETERS);
        JSONArray params = new JSONArray();
        params.put(speed);
        return sendOk("set_custom_mode", params);
    }
378799
public final void setMaxDragDistance(final float maxDragDistance) {
        if (maxDragDistance != 0) {
            Condition.INSTANCE.ensureGreater(maxDragDistance, threshold,
                    "The maximum drag distance must be greater than " + threshold);
        }

        this.maxDragDistance = maxDragDistance;
    }
935645
public int setMaximumConcurrentRequests(int newMax) {
        if (newMax < 1) {
            throw new IllegalArgumentException("Maximum concurrent requests must be at least 1");
        }
        int oldMax = this.max;
        this.max = newMax;
        if(newMax > oldMax) {
            synchronized (this) {
                while (!queue.isEmpty()) {
                    int oldVal, newVal;
                    do {
                        oldVal = requests;
                        if (oldVal >= max) {
                            return oldMax;
                        }
                        newVal = oldVal + 1;
                    } while (!requestsUpdater.compareAndSet(this, oldVal, newVal));
                    SuspendedRequest res = queue.poll();
                    res.exchange.dispatch(res.next);
                }
            }
        }
        return oldMax;
    }
230830
def setSpeed(self, vehID, speed):
        
        self._connection._sendDoubleCmd(
            tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SPEED, vehID, speed)
953347
@Override
	public void setMaxZ(double z) {
		double o = this.minzProperty.doubleValue() ;
		if (o>z) {
			this.maxzProperty.set(o);
			this.minzProperty.set(z);
		}
		else {
			this.maxzProperty.set(z);
		}
	}
612621
public void setLimits(long length, long milliseconds, long rateKBps) {
        maxLength = (length>0) ? length : Long.MAX_VALUE;
        timeoutMs = (milliseconds>0) ? milliseconds : Long.MAX_VALUE;
        maxRateBytesPerMs = (rateKBps>0) ? rateKBps*1024/1000 : Long.MAX_VALUE;
    }
1176253
public ProgressStyle setMax(int value){

        if(mProgressStyle == HORIZONTAL) {

            if (mProgress.isIndeterminate())
                mProgress.setIndeterminate(false);

            mProgress.setMax(value);

            if (!mIsPercentageMode)
                mProgressMax.setText(String.format("%d %s", value, mSuffix));

        }

        return this;
    }
883293
@Override
	public void setMaxZ(double z) {
		double o = this.minz;
		if (o>z) {
			this.maxz = o;
			this.minz = z;
		}
		else {
			this.maxz = z;
		}
	}
1346102
private void setMaxMin(IntervalRBTreeNode<T> n) {
    n.min = n.left;
    n.max = n.right;
    if (n.leftChild != null) {
      n.min = Math.min(n.min, n.leftChild.min);
      n.max = Math.max(n.max, n.leftChild.max);
    }
    if (n.rightChild != null) {
      n.min = Math.min(n.min, n.rightChild.min);
      n.max = Math.max(n.max, n.rightChild.max);
    }
  }
162380
public void setProgress(int max, int progress, boolean indeterminate) {
        this.progressMax = max;
        this.progress = progress;
        this.progressIndeterminate = indeterminate;
    }
859035
public void setVelocityRange( final Vector3f minV, final Vector3f maxV )
    {
        if (null != mGVRContext) {
            mGVRContext.runOnGlThread(new Runnable() {

                @Override
                public void run() {
                    minVelocity = minV;
                    maxVelocity = maxV;
                }
            });
        }
    }