Set the accelerometer range.

@param range the {@link com.punchthrough.bean.sdk.message.AccelerometerRange} to be set
421690
public void setAccelerometerRange(AccelerometerRange range) {
        Buffer buffer = new Buffer();
        buffer.writeByte(range.getRawValue());
        sendMessage(BeanMessageID.CC_ACCEL_SET_RANGE, buffer);
    }
1219935
@Override
    public ValueRange range(ChronoField field) {
        switch (field) {
            case PROLEPTIC_MONTH:
                return PROLEPTIC_MONTH_RANGE;
            case YEAR_OF_ERA:
                return YOE_RANGE;
            case YEAR:
                return YEAR_RANGE;
            default:
                break;
        }
        return field.range();
    }
225712
public void setStartTimes(java.util.Collection<DateTimeRange> startTimes) {
        if (startTimes == null) {
            this.startTimes = null;
            return;
        }

        this.startTimes = new java.util.ArrayList<DateTimeRange>(startTimes);
    }
152789
public void setRangesOnIndexedValues(java.util.Collection<ObjectAttributeRange> rangesOnIndexedValues) {
        if (rangesOnIndexedValues == null) {
            this.rangesOnIndexedValues = null;
            return;
        }

        this.rangesOnIndexedValues = new java.util.ArrayList<ObjectAttributeRange>(rangesOnIndexedValues);
    }
1315288
public function setRange($range) {
        if (isset(NumericS::$compiledRanges[$range])) {
            //$this->setRangeInformation(NumericS::$compiledRanges[$range]);
            //return;

            // goto has been found to be more efficient
            $rangeInformation = NumericS::$compiledRanges[$range];
            goto set_info;
        }

        if (!is_string($range)) {
            throw new \Exception("Variable \$range must be a string");
        }
        $rangeInformation = array();

        // Parse $range
        for ($i = 0; $i < strlen($range); $i++) {
            if ($range[$i] === '[' || $range[$i] === '(') {
                if (count($rangeInformation) === 0) {
                    $rangeInformation[] = ($range[$i] === '(');
                    $rangeInformation[] = "";
                } else {
                    throw new \Exception("Unexpected character '" . $range[$i] . "'");
                }
            } else if ($range[$i] === '-' || $range[$i] === '+') {
                if (count($rangeInformation) === 2 || count($rangeInformation) === 3) {
                    if (strlen(end($rangeInformation)) === 0) {
                        $rangeInformation[count($rangeInformation) - 1] .= $range[$i];
                    } else {
                        throw new \Exception("Unexpected character " . $range[$i] . "'");
                    }
                } else {
                    throw new \Exception("Unexpected character '-'");
                }
            } else if (is_numeric($range[$i])) {
                if (count($rangeInformation) === 2 || count($rangeInformation) === 3) {
                    $rangeInformation[count($rangeInformation) - 1] .= $range[$i];
                } else {
                    throw new \Exception("Unexpected numeric character '" . $range[$i] . "");
                }
            } else if ($range[$i] === '.') {
                if (count($rangeInformation) === 2 || count($rangeInformation) === 3) {
                    $current = $rangeInformation[count($rangeInformation) - 1];
                    $current .= $range[$i];
                    if (is_numeric($current)) {
                        $rangeInformation[count($rangeInformation) - 1] = $current;
                    } else {
                        throw new \Exception("Unexpected character '.'");
                    }
                } else {
                    throw new \Exception("Unexpected character '.'");
                }
            } else if ($range[$i] === ',') {
                if (count($rangeInformation) === 2){
                    $rangeInformation[] = "";
                } else {
                    throw new \Exception("Unexpected character ','");
                }
            } else if ($range[$i] === ']' || $range[$i] === ')') {
                if (count($rangeInformation) === 3) {
                    $rangeInformation[] = ($range[$i] === ')');
                } else {
                    throw new \Exception("Unexpected character '" . $range[$i] . "'");
                }
            } else if ($range[$i] === ' ') {
                if ((count($rangeInformation) === 2 && strlen($rangeInformation[1]) > 0)
                    || (count($rangeInformation) === 3 && strlen($rangeInformation[2]) > 0)) {
                    if ($i + 1 < strlen($range)
                        && (is_numeric($range[$i + 1]) || $range[$i + 1] === "-" || $range[$i + 1] === '.')) {
                        throw new \Exception("Unexpected space character ' '");
                    }
                }
            } else if ($range[$i] === 'i' && $range[$i+1] === 'n' && $range[$i+2] === 'f') {
                if (count($rangeInformation) === 2 && $rangeInformation[1] === '-') {
                    $rangeInformation[1] = "-inf";
                } else if (count($rangeInformation) === 3
                    && ($rangeInformation[2] === '+' || $rangeInformation[2] === '')) {
                    $rangeInformation[2] = "+inf";
                } else {
                    throw new \Exception("Unexpected expression 'inf'");
                }
                $i += 2;
            } else {
                throw new \Exception("Unexpected character '" . $range[$i] . "'");
            }
        }

        if (count($rangeInformation) !== 4) {
            throw new \Exception("Incorrect range string format");
        } else if ($rangeInformation[1] !== "-inf" && $rangeInformation[2] !== "+inf"
                    && (float)$rangeInformation[2] < (float)$rangeInformation[1]) {
            throw new \Exception("Upper bound must be >= (greater than or equal to) lower bound");
        }

        NumericS::$compiledRanges[$range] = $rangeInformation;
set_info:
        $this->range = $range;

        $this->lowerStrict = $rangeInformation[0];
        $this->lowerBound = (float)$rangeInformation[1];
        $this->lowerInfinity = ($rangeInformation[1] === "-inf");
        $this->upperBound = (float)$rangeInformation[2];
        $this->upperStrict = $rangeInformation[3];
        $this->upperInfinity = ($rangeInformation[2] === "+inf");
    }
311139
public void setContentRange(long startRange, long endRange) throws InvalidArgumentException {
    if (startRange <= 0 || endRange <= 0) {
      throw new InvalidArgumentException("negative start/end range");
    }

    if (startRange > endRange) {
      throw new InvalidArgumentException("start range is higher than end range");
    }

    this.contentRangeStart = startRange;
    this.contentRangeEnd = endRange;
  }
1359450
def set_range(self, start_index=0, end_index=None):
        '''
        
        '''
        if end_index is not None:
            end_index += 1
        self._test_list = StartEndList(start_index, end_index)
        self.session_info.start_index = start_index
        self.session_info.current_index = 0
        self.session_info.end_index = end_index
        self.session_info.test_list_str = self._test_list.as_test_list_str()
        return self
1276554
def _update_range(self, data, **kwargs):
        
        self._client.update_range(data=data, **kwargs)
886971
public void setRangeList(FSArray v) {
    if (OntRelationMention_Type.featOkTst && ((OntRelationMention_Type)jcasType).casFeat_rangeList == null)
      jcasType.jcas.throwFeatMissing("rangeList", "de.julielab.jules.types.OntRelationMention");
    jcasType.ll_cas.ll_setRefValue(addr, ((OntRelationMention_Type)jcasType).casFeatCode_rangeList, jcasType.ll_cas.ll_getFSRef(v));}
326303
@Override
    public ValueRange range(ChronoField field) {
        switch (field) {
            case ALIGNED_WEEK_OF_MONTH:
                return ALIGNED_WEEK_OF_MONTH_RANGE;
            case ALIGNED_WEEK_OF_YEAR:
                return ALIGNED_WEEK_OF_YEAR_RANGE;
            case DAY_OF_MONTH:
                return DAY_OF_MONTH_RANGE;
            case DAY_OF_YEAR:
                return DAY_OF_YEAR_RANGE;
            case MONTH_OF_YEAR:
                return MONTH_OF_YEAR_RANGE;
            default:
                return field.range();
        }
    }
855665
private void returnAccelerometerRange(Buffer buffer) {
        Callback<Integer> callback = getFirstCallback(BeanMessageID.CC_ACCEL_GET_RANGE);
        if (callback != null) {
            callback.onResult(buffer.readByte() & 0xff);
        }
    }
337142
public void setMinValue(final double VALUE) {
        if (Status.RUNNING == timeline.getStatus()) { timeline.jumpTo(Duration.ONE); }
        if (null == minValue) {
            if (VALUE > getMaxValue()) { setMaxValue(VALUE); }
            _minValue = Helper.clamp(-Double.MAX_VALUE, getMaxValue(), VALUE);
            setRange(getMaxValue() - _minValue);
            if (Double.compare(originalMinValue, -Double.MAX_VALUE) == 0) originalMinValue = _minValue;
            if (isStartFromZero() && _minValue < 0) setValue(0);
            if (Double.compare(originalThreshold, getThreshold()) < 0) { setThreshold(Helper.clamp(_minValue, getMaxValue(), originalThreshold)); }
            updateFormatString();
            fireUpdateEvent(RECALC_EVENT);
            if (!valueProperty().isBound()) Gauge.this.setValue(Helper.clamp(getMinValue(), getMaxValue(), Gauge.this.getValue()));
        } else {
            minValue.set(VALUE);
        }
    }
552141
@Override
    protected void onRangeChanged(HasData<RecordList.Record> display) {

        // Get the new range required.
        range = display.getVisibleRange();
        //if it is the last page don't load more results
        if(display.getRowCount()%range.getLength()!= 0 && display.getRowCount() > 0 && range.getStart() > previousRange.getStart()){
            display.setVisibleRange(previousRange.getStart(), previousRange.getLength());
        }

        updateResults(range.getStart(), range.getLength());
        previousRange = range;
    }
20859
public void setProgress(int progress) {
    if (progress > mMax || progress < 0) {
      throw new IllegalArgumentException(
          String.format("Progress (%d) must be between %d and %d", progress, 0, mMax));
    }
    mProgress = progress;
    invalidate();
  }
915447
def set_range(self, min_val, max_val):
        
        if min_val > max_val:
            max_val, min_val = min_val, max_val
        self.values = (((self.values * 1.0 - self.values.min()) /
                        (self.values.max() - self.values.min()))
                       * (max_val - min_val) + min_val)
73154
public void setTimeSeriesDateRange(com.google.api.ads.admanager.axis.v201902.DateRange timeSeriesDateRange) {
        this.timeSeriesDateRange = timeSeriesDateRange;
    }
505414
public void setRangeList(int i, Annotation v) { 
    if (OntRelationMention_Type.featOkTst && ((OntRelationMention_Type)jcasType).casFeat_rangeList == null)
      jcasType.jcas.throwFeatMissing("rangeList", "de.julielab.jules.types.OntRelationMention");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((OntRelationMention_Type)jcasType).casFeatCode_rangeList), i);
    jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((OntRelationMention_Type)jcasType).casFeatCode_rangeList), i, jcasType.ll_cas.ll_getFSRef(v));}