scaleTypeDescriptionFor method

String scaleTypeDescriptionFor(
  1. int scaleTypeNum
)

Return a description for the scale type. Throw a ZwException if scaleTypeNum is out of bounds.

Implementation

String scaleTypeDescriptionFor(int scaleTypeNum) {
  if (scaleTypeNum < 0 || scaleTypeNum >= scaleTypeDescriptions.length) {
    throw ZwException(
        'Invalid SensorMultilevelType $sensorTypeNum scaleTypeNum: $scaleTypeNum');
  }
  return scaleTypeDescriptions[scaleTypeNum];
}