|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.controlparameter.ProportionalControlParameter
public class ProportionalControlParameter
A control parameter that is defined to return a proportional value.
Constructor Summary | |
---|---|
ProportionalControlParameter()
Create a new ProportionalControlParameter instance. |
|
ProportionalControlParameter(ProportionalControlParameter copy)
|
Method Summary | |
---|---|
ProportionalControlParameter |
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 |
Constructor Detail |
---|
public ProportionalControlParameter()
ProportionalControlParameter
instance. The default proportion
value is defined to be 0.1 (10%).
public ProportionalControlParameter(ProportionalControlParameter copy)
Method Detail |
---|
public ProportionalControlParameter 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 |