com.tuneology.sane
Class SaneRange

java.lang.Object
  |
  +--com.tuneology.sane.SaneRange

public class SaneRange
extends java.lang.Object

This constraint is applicable to integer and fixed-point valued options only. It constrains the option value to a possibly quantized range of numbers. All three members in this structure are interpreted according to the option value type (integer or fixed-point). Members min and max specify the minimum and maximum values, respectively. If member quant is non-zero, it specifies the quantization value. If l is the minimum value, u the maximum value and q the (non-zero) quantization of a range, then the legal values are v=k*q+l for all non-negative integer values of k such that v<=u.

Version:
$Id$
Author:
Fran Taylor

Method Summary
 int getMax()
          maximum (element) value
 int getMin()
          minimum (element) value
 int getQuant()
          If non-zero, specifies the quantization value (increment).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMin

public int getMin()
minimum (element) value


getMax

public int getMax()
maximum (element) value


getQuant

public int getQuant()
If non-zero, specifies the quantization value (increment).