es.udc.gii.common.eaf.plugin.parameter
Class RandomValue

java.lang.Object
  extended by es.udc.gii.common.eaf.plugin.parameter.Parameter
      extended by es.udc.gii.common.eaf.plugin.parameter.RandomValue
All Implemented Interfaces:
Configurable, Plugin

public class RandomValue
extends Parameter

A parameter that returns a evenly distributed random value between two given bounds.

Author:
rafa

Field Summary
private  double lowerBound
           
private  double upperBound
           
 
Constructor Summary
RandomValue()
           
RandomValue(double lowerBound, double upperBound)
           
 
Method Summary
 void configure(org.apache.commons.configuration.Configuration conf)
           
 double get(EvolutionaryAlgorithm algorithm)
           
 double getLowerBound()
           
 double getUpperBound()
           
 void setLowerBound(double lowerBound)
           
 void setUpperBound(double upperBound)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lowerBound

private double lowerBound

upperBound

private double upperBound
Constructor Detail

RandomValue

public RandomValue(double lowerBound,
                   double upperBound)

RandomValue

public RandomValue()
Method Detail

get

public double get(EvolutionaryAlgorithm algorithm)
Specified by:
get in class Parameter

configure

public void configure(org.apache.commons.configuration.Configuration conf)

getLowerBound

public double getLowerBound()

setLowerBound

public void setLowerBound(double lowerBound)

getUpperBound

public double getUpperBound()

setUpperBound

public void setUpperBound(double upperBound)