net.beadsproject.beads.data.buffers
Class CurveBuffer

java.lang.Object
  extended by net.beadsproject.beads.data.BufferFactory
      extended by net.beadsproject.beads.data.buffers.CurveBuffer

public class CurveBuffer
extends BufferFactory

Creates a Buffer of the function x^e^(-c) where x is in the range [0,1] and c is a curviness factor.


Field Summary
 
Fields inherited from class net.beadsproject.beads.data.BufferFactory
DEFAULT_BUFFER_SIZE
 
Constructor Summary
CurveBuffer(float curviness)
          Instantiates a new curve buffer.
 
Method Summary
 Buffer generateBuffer(int bufferSize)
          Subclasses should override this method to generate a Buffer of the specified size.
 java.lang.String getName()
          Subclasses should override this method to generate a name.
 
Methods inherited from class net.beadsproject.beads.data.BufferFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurveBuffer

public CurveBuffer(float curviness)
Instantiates a new curve buffer.

Parameters:
curviness - the curviness.
Method Detail

generateBuffer

public Buffer generateBuffer(int bufferSize)
Description copied from class: BufferFactory
Subclasses should override this method to generate a Buffer of the specified size.

Specified by:
generateBuffer in class BufferFactory
Parameters:
bufferSize - the buffer size.
Returns:
the buffer.

getName

public java.lang.String getName()
Description copied from class: BufferFactory
Subclasses should override this method to generate a name. A default name should always be available for the case where BufferFactory.getDefault() is called.

Specified by:
getName in class BufferFactory
Returns:
the name of the buffer.