parameters
Class ParameterSetArray

java.lang.Object
  extended byparameters.ParameterSetArray

public class ParameterSetArray
extends java.lang.Object


Field Summary
static java.lang.String ADDING_PARAM_SET_STRING
           
static java.lang.String CLOSING_STRING
           
 int numGroups
           
static java.lang.String REMOVING_PARAM_SET_STRING
           
 java.util.Vector tagNames
           
 int totNumSets
           
 
Constructor Summary
ParameterSetArray()
           
ParameterSetArray(ParameterSet prototype)
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
           
 void addSet(ParameterSet set)
           
 boolean atBeginning()
           
 boolean atEnd()
           
 MultiFloatReturn calculateDistancesToSet(ParameterSetArray parray2)
          Calculated the minimum and maximum distances between parameter sets in this and the input parameter set array.
 void deleting()
          Call this before deleting the param set array.
 ParameterSet getCurSet()
           
 int getCurSetNum()
           
 java.lang.String getCurTag()
           
 int getCurTagNum()
           
 java.lang.String getFilename()
           
 float getHighThreshold()
           
 float getLowThreshold()
           
 ParameterSet getNextSet()
           
 int getNumSets()
           
 ParameterSet getPreviousSet()
           
 ParameterSet getPrototype()
           
 ParameterSet getSetNum(int num)
           
 ParameterSet goToBeginning()
           
 ParameterSet goToSet(int num)
           
 ParameterSet goToSet(ParameterSet set)
          Moves the arrays pointer to the currently selected set to point to the input set.
 void loadParameters(BetterTokenizer tokenizer)
           
 void remove(int set_num)
           
 void removeActionListener(java.awt.event.ActionListener l)
           
 void removeAll()
           
 void saveParameters(java.io.PrintWriter ps, java.lang.String indent)
           
 void setCurTag(java.lang.String tag)
           
 void setFilename(java.lang.String str)
           
 void setHighThreshold(float threshold)
           
 void setLowThreshold(float threshold)
           
 void updateOutput(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

totNumSets

public int totNumSets

numGroups

public int numGroups

tagNames

public java.util.Vector tagNames

CLOSING_STRING

public static final java.lang.String CLOSING_STRING
See Also:
Constant Field Values

ADDING_PARAM_SET_STRING

public static final java.lang.String ADDING_PARAM_SET_STRING
See Also:
Constant Field Values

REMOVING_PARAM_SET_STRING

public static final java.lang.String REMOVING_PARAM_SET_STRING
See Also:
Constant Field Values
Constructor Detail

ParameterSetArray

public ParameterSetArray()

ParameterSetArray

public ParameterSetArray(ParameterSet prototype)
Method Detail

addSet

public void addSet(ParameterSet set)

remove

public void remove(int set_num)

removeAll

public void removeAll()

loadParameters

public void loadParameters(BetterTokenizer tokenizer)
                    throws java.lang.Exception
Throws:
java.lang.Exception

saveParameters

public void saveParameters(java.io.PrintWriter ps,
                           java.lang.String indent)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getNextSet

public ParameterSet getNextSet()

getPreviousSet

public ParameterSet getPreviousSet()

getCurSet

public ParameterSet getCurSet()

getCurSetNum

public int getCurSetNum()

getSetNum

public ParameterSet getSetNum(int num)

getCurTagNum

public int getCurTagNum()

getPrototype

public ParameterSet getPrototype()

goToBeginning

public ParameterSet goToBeginning()

goToSet

public ParameterSet goToSet(int num)

goToSet

public ParameterSet goToSet(ParameterSet set)
Moves the arrays pointer to the currently selected set to point to the input set. Returns that input set if it finds it in the array, otherwise returns null and moves the pointer to the last set in the array.


atBeginning

public boolean atBeginning()

atEnd

public boolean atEnd()

calculateDistancesToSet

public MultiFloatReturn calculateDistancesToSet(ParameterSetArray parray2)
Calculated the minimum and maximum distances between parameter sets in this and the input parameter set array. Distances are calculated as the pythagorean distance in n dimensions, where n is the number of parameters. Each parameter is scaled by its range before doing the calculation so that all parameters carry equal weight in the final distance.

This function is safe to use for comparing a paramsetarray with itself.


getHighThreshold

public float getHighThreshold()

setHighThreshold

public void setHighThreshold(float threshold)

getLowThreshold

public float getLowThreshold()

setLowThreshold

public void setLowThreshold(float threshold)

getCurTag

public java.lang.String getCurTag()

setCurTag

public void setCurTag(java.lang.String tag)

getFilename

public java.lang.String getFilename()

setFilename

public void setFilename(java.lang.String str)

getNumSets

public int getNumSets()

deleting

public void deleting()
Call this before deleting the param set array.


addActionListener

public void addActionListener(java.awt.event.ActionListener l)

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)

updateOutput

public void updateOutput(java.lang.String type)