Skip to main content

BoundedValue

BoundedValue

Kind: global class

new BoundedValue(currentValue, upperLimit, [lowerLimit])

ParamTypeDefault
currentValueNumber
upperLimitNumber
[lowerLimit]Number0

boundedValue.setUpperLimit(v)

Kind: instance method of BoundedValue

ParamType
vNumber

boundedValue.getUpperLimit() ⇒ Number

Kind: instance method of BoundedValue

boundedValue.getLowerLimit() ⇒ Number

Kind: instance method of BoundedValue

boundedValue.setLowerLimit(v)

Kind: instance method of BoundedValue

ParamType
vNumber

boundedValue.setValue(v)

Kind: instance method of BoundedValue

ParamType
vNumber

boundedValue.getValue() ⇒ Number

Kind: instance method of BoundedValue

boundedValue.getFraction() ⇒ number

Kind: instance method of BoundedValue

boundedValue.setValueToLimit()

Kind: instance method of BoundedValue

boundedValue.isValueAtLimit() ⇒ boolean

Kind: instance method of BoundedValue

boundedValue.addValue(val)

Kind: instance method of BoundedValue

ParamType
valNumber

boundedValue.copy(other) ⇒ BoundedValue

Kind: instance method of BoundedValue

ParamType
otherBoundedValue

boundedValue.equals(other) ⇒ boolean

Kind: instance method of BoundedValue

ParamType
otherBoundedValue

boundedValue.hash() ⇒ number

Kind: instance method of BoundedValue

boundedValue.toBinaryBuffer(buffer)

Kind: instance method of BoundedValue

ParamType
bufferBinaryBuffer

boundedValue.fromBinaryBuffer(buffer)

Kind: instance method of BoundedValue

ParamType
bufferBinaryBuffer