com.softsynth.jmsl
Class DimAttributes

java.lang.Object
  extended by com.softsynth.jmsl.Limits
      extended by 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
DimAttributes()
           
DimAttributes(java.lang.String n)
           
 
Method Summary
 double getDefault()
           
 double getMax()
          return precalculated maximum value found
 double getMean()
          return precalculated mean
 double getMin()
           
 java.lang.String getName()
           
 double getSum()
          return precalulated sum
 void 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 Detail

DimAttributes

public DimAttributes()

DimAttributes

public DimAttributes(java.lang.String n)
Method Detail

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()
Overrides:
toString in class Limits