org.datamixer.collections
Class Doubles

java.lang.Object
  extended byorg.datamixer.collections.DatamixerCollection
      extended byorg.datamixer.collections.DatamixerList
          extended byorg.datamixer.collections.SyntheticList
              extended byorg.datamixer.collections.Doubles
All Implemented Interfaces:
java.util.Collection, java.util.List

public class Doubles
extends SyntheticList


Field Summary
static double DEFAULT_EPSILON
           
static double DEFAULT_FIRST
           
static double DEFAULT_STEP
           
protected  double epsilon_
           
protected  double first_
           
protected  double last_
           
protected  double step_
           
 
Fields inherited from class org.datamixer.collections.SyntheticList
firstClosed_, hasLast_, lastClosed_, range_
 
Fields inherited from class org.datamixer.collections.DatamixerCollection
dataType_, debugEnabled_, formatPattern_, id_, initialized_, logger_, name_, repeat_
 
Constructor Summary
Doubles()
           
Doubles(double first)
           
Doubles(double first, double last)
           
Doubles(double first, double last, double step)
           
Doubles(double first, double last, double step, double epsilon)
           
Doubles(java.lang.String range)
           
 
Method Summary
protected  DatamixerIterator createIterator()
          Returns an iterator over the elements in this collection.
protected  java.lang.Object doGet(int index)
           
protected  int doGetSize()
           
protected  void doInitialize()
          Initialization.
 double getDouble(int index)
           
 double getEpsilon()
           
 double getFirst()
           
 double getLast()
           
 double getStep()
           
 Value getValue(int index)
          Returns the element at index, wrapped in a Value.
 java.lang.Object[] newArray(int size)
          Returns the elements in this list as an array of length size.
 void setEpsilon(double value)
           
 void setFirst(double value)
           
 void setLast(double value)
           
 void setStep(double value)
           
 
Methods inherited from class org.datamixer.collections.SyntheticList
getFirstClosed, getFirstString, getLastClosed, getLastString, getRange, getRangeObject, getStepString, setFirstString, setLastString, setRange, setRangeObject, setStepString, toString
 
Methods inherited from class org.datamixer.collections.DatamixerList
add, addAll, contains, containsAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList, toArray, toArray
 
Methods inherited from class org.datamixer.collections.DatamixerCollection
add, addAll, clear, error, getDatamixerIterator, getDataType, getFormatPattern, getId, getName, getRepeat, getSize, initialize, isEmpty, iterator, remove, removeAll, retainAll, setDataType, setFormatPattern, setId, setName, setRepeat, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, clear, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size
 

Field Detail

DEFAULT_FIRST

public static final double DEFAULT_FIRST
See Also:
Constant Field Values

DEFAULT_STEP

public static final double DEFAULT_STEP
See Also:
Constant Field Values

DEFAULT_EPSILON

public static final double DEFAULT_EPSILON
See Also:
Constant Field Values

first_

protected double first_

last_

protected double last_

step_

protected double step_

epsilon_

protected double epsilon_
Constructor Detail

Doubles

public Doubles()

Doubles

public Doubles(java.lang.String range)

Doubles

public Doubles(double first)

Doubles

public Doubles(double first,
               double last)

Doubles

public Doubles(double first,
               double last,
               double step)

Doubles

public Doubles(double first,
               double last,
               double step,
               double epsilon)
Method Detail

doInitialize

protected void doInitialize()
                     throws DatamixerException
Initialization.

Overrides:
doInitialize in class SyntheticList
Throws:
DatamixerException

createIterator

protected DatamixerIterator createIterator()
Returns an iterator over the elements in this collection.

Specified by:
createIterator in class DatamixerCollection
Returns:
an iterator over the elements in this collection.

getValue

public Value getValue(int index)
Description copied from class: DatamixerList
Returns the element at index, wrapped in a Value.

Specified by:
getValue in class DatamixerList

doGet

protected java.lang.Object doGet(int index)
Specified by:
doGet in class DatamixerList

newArray

public java.lang.Object[] newArray(int size)
Description copied from class: DatamixerList
Returns the elements in this list as an array of length size. If size is greater than the length of the list, the additional elements in the array are null.

Specified by:
newArray in class DatamixerList

doGetSize

protected int doGetSize()
Specified by:
doGetSize in class DatamixerCollection

getDouble

public double getDouble(int index)

getFirst

public double getFirst()

setFirst

public void setFirst(double value)

getLast

public double getLast()

setLast

public void setLast(double value)

getStep

public double getStep()

setStep

public void setStep(double value)

getEpsilon

public double getEpsilon()

setEpsilon

public void setEpsilon(double value)


Copyright © 2004-2006 datamixer.org. All Rights Reserved.