|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectparameterrules.ParameterRule
Field Summary | |
protected int |
numParams
|
protected int[] |
paramNums
|
Method Summary | |
boolean |
changeParameters(float[] params,
int mode,
ParameterSet set)
This method should change parameters so that they conform to this rule. |
ParameterRule |
copy()
|
float |
getFuzzyScore(float[] params)
This method should return 0 if the parameters in the input set pass the criteria in this rule. |
void |
init(ParameterSet params)
Initializes refParam to point to a parameter set which will be used as reference herein. |
boolean |
isGood(float[] params)
Returns true if the parameters in the input set meet the criteria for this rule, false otherwise. |
protected void |
loadParameter(java.lang.String info,
BetterTokenizer tokenizer)
Override this function for each parameter rule to load in setup info specific to that rule. |
void |
loadParameters(BetterTokenizer tokenizer)
The main method for loading paramaters from a stream. |
protected void |
pickNewParameterValue(float[] params,
int change_param,
float min,
float max,
int mode,
ParameterSet set)
Picks a new parameter value in the range min to max. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int[] paramNums
protected int numParams
Method Detail |
public void init(ParameterSet params)
public ParameterRule copy()
public boolean isGood(float[] params)
params
- The values of all the parameters in the reference parameter set.
The params array and the reference parameter set need to match one-to-one.public float getFuzzyScore(float[] params)
params
- The values of all the parameters in the reference parameter set.
The params array and the reference parameter set need to match one-to-one.public boolean changeParameters(float[] params, int mode, ParameterSet set)
params
- The values of all the parameters in the reference parameter set.
The params array and the reference parameter set need to match one-to-one.protected void pickNewParameterValue(float[] params, int change_param, float min, float max, int mode, ParameterSet set)
public void loadParameters(BetterTokenizer tokenizer) throws java.lang.Exception
java.lang.Exception
protected void loadParameter(java.lang.String info, BetterTokenizer tokenizer) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |