Package com.softsynth.jmsl
Class DimAttributes
java.lang.Object
com.softsynth.jmsl.Limits
com.softsynth.jmsl.DimAttributes
- All Implemented Interfaces:
java.io.Serializable
public class DimAttributes extends Limits implements java.io.Serializable
The properties of one dimension, used by MusicShape.
Call calcStats() in MusicShape before calling methods to retrieve calculated values
- Author:
- Nick Didkovsky
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DimAttributes()
DimAttributes(java.lang.String n)
-
Method Summary
Modifier and Type Method Description double
getDefault()
double
getMax()
return precalculated maximum value founddouble
getMean()
return precalculated meandouble
getMin()
java.lang.String
getName()
double
getSum()
return precalulated sumvoid
printStats()
void
setDefault(double value)
java.lang.String
toString()
Methods inherited from class com.softsynth.jmsl.Limits
clip, clipTo, clipTo, getHigh, getIntValue, getLow, getRange, getValue, main, randomStep, setLimits, setRange, setValue, within, within, within, within
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
DimAttributes
public DimAttributes() -
DimAttributes
public DimAttributes(java.lang.String n)
-
-
Method Details
-
setDefault
public void setDefault(double value) -
getDefault
public double getDefault() -
getMin
public double getMin()- Returns:
- precalculated minimim value found
-
getMean
public double getMean()return precalculated mean -
getMax
public double getMax()return precalculated maximum value found -
getSum
public double getSum()return precalulated sum -
getName
public java.lang.String getName()- Returns:
- name of dimension
-
printStats
public void printStats() -
toString
public java.lang.String toString()
-