Logo GenPRES

ValueRange Module

Sets an optional minimum, maximum, increment or value set on a value range and returns the union of several value ranges.

Functions and values

Function or value Description

setOptIncr incr vr

Full Usage: setOptIncr incr vr

Parameters:
Returns: ValueRange

Sets an optional increment value for the value range

incr : Increment option

The optional Increment

vr : ValueRange

The ValueRange

Returns: ValueRange

setOptMax max vr

Full Usage: setOptMax max vr

Parameters:
Returns: ValueRange

Sets an optional maximum value for the value range

max : Maximum option

The optional Maximum

vr : ValueRange

The ValueRange

Returns: ValueRange

setOptMin min vr

Full Usage: setOptMin min vr

Parameters:
Returns: ValueRange

Sets an optional minimum value for the value range

min : Minimum option

The optional Minimum

vr : ValueRange

The ValueRange

Returns: ValueRange

setOptVs vs vr

Full Usage: setOptVs vs vr

Parameters:
Returns: ValueRange

Sets an optional value set for the value range

vs : ValueSet option

The optional ValueSet

vr : ValueRange

The ValueRange

Returns: ValueRange

unionRanges maxCount vrs

Full Usage: unionRanges maxCount vrs

Parameters:
Returns: ValueRange

Returns the union of value ranges. When every range is a value set, or a min, increment and max with fewer than maxCount values, the union is one value set. Otherwise the union runs from the lowest minimum to the highest maximum with the increments of all ranges; it has no minimum, maximum or increment when one of the ranges has none.

maxCount : int
vrs : ValueRange list
Returns: ValueRange

Type something to start searching.