es.udc.gii.common.eaf.log
Class FEsToReachValueLogTool
java.lang.Object
es.udc.gii.common.eaf.log.LogTool
es.udc.gii.common.eaf.log.FEsToReachValueLogTool
- All Implemented Interfaces:
- Configurable, java.util.Observer
public class FEsToReachValueLogTool
- extends LogTool
This log tool implements a log tool that record the number of function evaluations needed until
reach a fitness value specify in the parameter value.
Apart from the superclass configuration parameters, it is necessary to configure the value of the
parameter value. So, the xml code necessary to use this log tool is the following:
<LogTool>
<Class>es.udc.gii.common.eaf.log.FEsToReachValueLogTool</Class>
<Folder>value</Folder>
<Name>value</Name>
<Value>value</Value>
</LogTool>
Where the tag Class is mandatory, and indicates the specific class to be used. The tags
Folder, Name and Value are optional, and indicates the folder where the log will be recorded,
the name of the file and the desired value, respectively. If these three tags do not appear, their defautl value is used.
Default values:
- Folder default value is "working_directory/OF".
- Name default value is ALG_POP_TS.txt (monoprocessor environment) or ALG_POP_TS_ND.txt (distributed environment).
- Value default value is 1.0e-6
- Since:
- 1.0
- Author:
- Grupo Integrado de IngenierĂa (www.gii.udc.es)
Method Summary |
void |
configure(org.apache.commons.configuration.Configuration conf)
Configures the specific element that implements this method. |
java.lang.String |
getLogID()
|
void |
update(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
private double value
to_compare
private Individual to_compare
print
private boolean print
FEsToReachValueLogTool
public FEsToReachValueLogTool()
- Creates a new instance of BestMeanLogTool
configure
public void configure(org.apache.commons.configuration.Configuration conf)
- Description copied from interface:
Configurable
- Configures the specific element that implements this method.
- Specified by:
configure
in interface Configurable
- Overrides:
configure
in class LogTool
- Parameters:
conf
- a Configuration object.- See Also:
Configuration
update
public void update(java.util.Observable o,
java.lang.Object arg)
- Specified by:
update
in interface java.util.Observer
- Overrides:
update
in class LogTool
getLogID
public java.lang.String getLogID()
- Overrides:
getLogID
in class LogTool