|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.controlparameter.ConstantControlParameter
public class ConstantControlParameter
A control parameter to represent a constant value. The specified value will be maintained until it is altered.
Field Summary | |
---|---|
protected double |
parameter
|
Constructor Summary | |
---|---|
ConstantControlParameter()
Create a new instance of ConstantControlParameter . |
|
ConstantControlParameter(ConstantControlParameter copy)
Create a copy of the provided instance. |
|
ConstantControlParameter(double value)
Create a new instance of ConstantControlParameter with the provided value as the value for the ControlParameter. |
Method Summary | |
---|---|
ConstantControlParameter |
getClone()
Clone the current object such that a comparison of the clone and original object will yield two separate, but duplicate objects. |
double |
getParameter()
Get the value of the represented parameter. |
double |
getParameter(double min,
double max)
Get the parameter value based on the provided min and max . |
void |
setParameter(double value)
Set the value of the represented parameter. |
void |
updateParameter()
Update the required and needed parameters contained within this parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double parameter
Constructor Detail |
---|
public ConstantControlParameter()
ConstantControlParameter
.
public ConstantControlParameter(double value)
value
- The value to set.public ConstantControlParameter(ConstantControlParameter copy)
copy
- The instance to copy.Method Detail |
---|
public ConstantControlParameter getClone()
getClone
in interface ControlParameter
getClone
in interface Cloneable
Object.clone()
public double getParameter()
getParameter
in interface ControlParameter
public double getParameter(double min, double max)
min
and max
.
getParameter
in interface ControlParameter
min
- The minimum value to use in getting the parameter valuemax
- The maximum value to use in getting the parameter value
public void setParameter(double value)
setParameter
in interface ControlParameter
value
- The value to be used.public void updateParameter()
updateParameter
in interface ControlParameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |