wodka.util
Class DoubleRanges

java.lang.Object
  extended bywodka.util.DoubleRanges
All Implemented Interfaces:
wwan.commons.param.Configurable, wwan.commons.param.Informative, java.io.Serializable, StreamPersistable
Direct Known Subclasses:
DoubleTestRanges, SodaGlobalsRanges

public abstract class DoubleRanges
extends java.lang.Object
implements wwan.commons.param.Configurable, StreamPersistable

Describes the attribute of a DoubleValues.

Author:
wwagner4
See Also:
Serialized Form

Constructor Summary
protected DoubleRanges()
           
 
Method Summary
 void checkParameterList(wwan.commons.param.ListParam lp)
           
 DoubleRanges createCopy()
           
protected abstract  DoubleRanges createNew()
           
protected  java.util.Collection defaultValues()
           
 void fromStream(java.io.DataInputStream s, int version)
           
 double getMax(java.lang.String name)
           
 double getMin(java.lang.String name)
           
 wwan.commons.param.ListParamDesc getParameterDescription()
           
 int getVersion()
           
protected  void init()
           
protected abstract  java.util.Collection names()
           
 void setFieldsFromParameterList(wwan.commons.param.ListParam lp)
           
 void setMax(java.lang.String name, double val)
           
 void setMin(java.lang.String name, double val)
           
 void setParameterListFromFields(wwan.commons.param.ListParam lp)
           
 void toStream(java.io.DataOutputStream s)
           
protected abstract  java.util.Collection values(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wwan.commons.param.Informative
getInfo, getLabel
 

Constructor Detail

DoubleRanges

protected DoubleRanges()
Method Detail

init

protected void init()

names

protected abstract java.util.Collection names()

createNew

protected abstract DoubleRanges createNew()

values

protected abstract java.util.Collection values(java.lang.String name)

defaultValues

protected java.util.Collection defaultValues()

toStream

public void toStream(java.io.DataOutputStream s)
              throws java.io.IOException
Specified by:
toStream in interface StreamPersistable
Throws:
java.io.IOException

fromStream

public void fromStream(java.io.DataInputStream s,
                       int version)
                throws java.io.IOException
Specified by:
fromStream in interface StreamPersistable
Throws:
java.io.IOException

getVersion

public int getVersion()
Specified by:
getVersion in interface StreamPersistable

getParameterDescription

public wwan.commons.param.ListParamDesc getParameterDescription()
                                                         throws wwan.commons.param.ParamException
Specified by:
getParameterDescription in interface wwan.commons.param.Configurable
Throws:
wwan.commons.param.ParamException
See Also:
wodka.param.Configurable#getParameterDescription()

setFieldsFromParameterList

public void setFieldsFromParameterList(wwan.commons.param.ListParam lp)
                                throws wwan.commons.param.ParamException
Specified by:
setFieldsFromParameterList in interface wwan.commons.param.Configurable
Throws:
wwan.commons.param.ParamException
See Also:
wodka.param.Configurable#setFieldsFromParameterList(wodka.param.ListParam)

setParameterListFromFields

public void setParameterListFromFields(wwan.commons.param.ListParam lp)
                                throws wwan.commons.param.ParamException
Specified by:
setParameterListFromFields in interface wwan.commons.param.Configurable
Throws:
wwan.commons.param.ParamException
See Also:
wodka.param.Configurable#setParameterListFromFields(wodka.param.ListParam)

checkParameterList

public void checkParameterList(wwan.commons.param.ListParam lp)
                        throws wwan.commons.param.ParamException
Specified by:
checkParameterList in interface wwan.commons.param.Configurable
Throws:
wwan.commons.param.ParamException
See Also:
wodka.param.Configurable#checkParameterList(wodka.param.ListParam)

createCopy

public DoubleRanges createCopy()

getMin

public double getMin(java.lang.String name)

getMax

public double getMax(java.lang.String name)

setMax

public void setMax(java.lang.String name,
                   double val)

setMin

public void setMin(java.lang.String name,
                   double val)