AFLPcore
Class CutoffMgr

java.lang.Object
  |
  +--AFLPcore.Manager
        |
        +--AFLPcore.CutoffMgr

public class CutoffMgr
extends Manager

This class contains a list of CutoffFunctions which can be used to read create different functions for the cutoff. For example, a cutoff could be a horizontal line, a slanted line, a exponential curve, etc. Each filter is associated with a String, which represents its name. The pairing features are inherited from the Manager class.

The filters can be retrieved based on their name, and a lists of names can be obtained from the CutoffMgr. The CutoffFunction will contain addtional information about the type of function it represents as well as the parameters needed to set it up.

See Also:
CutoffFunction, Manager

Constructor Summary
CutoffMgr()
          Creates a new CutoffMgr, with a default capacity of 4 and a loadFactor of 1.0.
CutoffMgr(int capacity, float loadFactor)
          Creates a new CutoffMgr with the specified values.
 
Method Summary
 boolean classTypeOk(Operation op)
          Checks to see if the specified operation is a CutoffFunction.
 
Methods inherited from class AFLPcore.Manager
add, get, getDefault, getDefaultName, getNames, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CutoffMgr

public CutoffMgr()
Creates a new CutoffMgr, with a default capacity of 4 and a loadFactor of 1.0. Sets up the Hashtable for the String/CutoffFunction pairs.

CutoffMgr

public CutoffMgr(int capacity,
                 float loadFactor)
          throws java.lang.IllegalArgumentException
Creates a new CutoffMgr with the specified values.
Parameters:
capacity - the initial number of filters that can be stored.
loadFactor - controls memory efficiency vs. lookup speed, it must be between 0.0 and 1.0, where 1.0 has the greatest memory efficiency
Throws:
java.lang.IllegalArgumentException - when capacitly is less than zero or the loadFactor is out of bounds.
Method Detail

classTypeOk

public boolean classTypeOk(Operation op)
Checks to see if the specified operation is a CutoffFunction.
Overrides:
classTypeOk in class Manager
Returns:
true if it is, false if it is not.
See Also:
CutoffFunction