Class AdjustableParameterObj
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.api.annotation.AdjustableParameterObj
-
public class AdjustableParameterObj extends java.lang.ObjectAn object to wrap an adjustable parameter annotation with other information commonly required when working with it
-
-
Constructor Summary
Constructors Constructor Description AdjustableParameterObj(AdjustableParameter param, java.lang.reflect.Field field, boolean isFixed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetDefaultValue()Default value the parameter takesjava.lang.StringgetDescription()Optional, detailed description of what the parameter doesjava.lang.StringgetDisplayName()Display Name for the parameter to be displayed in the UIfloatgetMaximumBound()The maximum bound for the fieldfloatgetMinimumBound()Minimum bound for fieldjava.lang.StringgetName()Field Name for the parameter for use in the UI backendjava.lang.StringgetReference()Fetches the reference string for the adjustable parameter represented by this objectfloatgetStep()The step to increment or decrement the parameter by in the UIbooleanisFixed()Return if the parameter is fixed, ie.booleanisInt()is the parameter an integer parameter? (if not is a float)
-
-
-
Constructor Detail
-
AdjustableParameterObj
public AdjustableParameterObj(AdjustableParameter param, java.lang.reflect.Field field, boolean isFixed)
-
-
Method Detail
-
getDefaultValue
public float getDefaultValue()
Default value the parameter takes- Returns:
- the default value
-
getDescription
public java.lang.String getDescription()
Optional, detailed description of what the parameter does- Returns:
- the description string
-
getDisplayName
public java.lang.String getDisplayName()
Display Name for the parameter to be displayed in the UI- Returns:
- the display name
-
getMaximumBound
public float getMaximumBound()
The maximum bound for the field- Returns:
- the max bound
-
getMinimumBound
public float getMinimumBound()
Minimum bound for field- Returns:
- the min bound
-
getName
public java.lang.String getName()
Field Name for the parameter for use in the UI backend- Returns:
- backend name
-
getReference
public java.lang.String getReference()
Fetches the reference string for the adjustable parameter represented by this object- Returns:
- the parameter specific string
-
getStep
public float getStep()
The step to increment or decrement the parameter by in the UI- Returns:
- the step value
-
isFixed
public boolean isFixed()
Return if the parameter is fixed, ie. it cannot be modified after a task has been run, for example when it is for a detector- Returns:
- is the param fixed after raw results have been generated?
-
isInt
public boolean isInt()
is the parameter an integer parameter? (if not is a float)- Returns:
- is an integer?
-
-