DoubleRangeParameter
ptolemy.actor.parameters.DoubleRangeParameter

This is a parameter with type double with a limited range and limited precision. Its value is an double token that is constrained to lie within the boundaries specified by its two parameters, min and max, inclusive. Moreover, the values are quantized so that there are exactly precision values, uniformly spaced in the range. A user interface will typically use this information to represent the parameter value using a slider. The default values for min and max are 0.0 and 1.0, with a default value of 0.5. The default precision is 100.



Author(s): Edward A. Lee
Version:$Id: DoubleRangeParameter.java,v 1.10 2005/07/08 19:56:38 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Red (cxh)




max
The maximum value. This is has a double value, and defaults to 1.0.

min
The minimum value. This is has a double value, and defaults to 0.0.

precision
The precision, which is the number of possible values. This is has an integer value, and defaults to 100.