$darkmode
DENOPTIM
denoptim.fitness.DescriptorForFitness Class Reference

This is a reference to a specific descriptor value. More...

Collaboration diagram for denoptim.fitness.DescriptorForFitness:
[legend]

Public Member Functions

 DescriptorForFitness (String shortName, String className, IDescriptor implementation, int resultId)
 
 DescriptorForFitness (String shortName, String className, IDescriptor implementation, int resultId, String[] dictClasses, String dictDefinition, String dictTitle)
 
String getShortName ()
 
void setVariables (List< Variable > variables)
 Overwrites the list of variables using this descriptor. More...
 
List< VariablegetVariables ()
 Get the variables that make use of values produced by this descriptor. More...
 
String getClassName ()
 
IDescriptor getImplementation ()
 
String getDictTitle ()
 
String getDictDefinition ()
 
String[] getDictClasses ()
 
String toString ()
 
String getDictString ()
 Utility only meant to print some info. More...
 
DescriptorForFitness cloneAllButImpl ()
 This is a sort of cloning that returns a new DescriptorForFitness with the same field content of this one (i.e., deep copy), but a shallow copy of the list of variables, and a null implementation. More...
 
DescriptorForFitness makeCopy () throws DENOPTIMException
 Copy this descriptor and created an independent instance of the underlying descriptor implementation. More...
 
void addDependentVariable (Variable v)
 Append the reference to a variable that used data produced by the calculation of this descriptor. More...
 

Protected Attributes

String className
 ClassName pointing to the implementation of this descriptor's calculator. More...
 
IDescriptor implementation
 Implementation of the descriptor's calculator. More...
 
String shortName
 Descriptor short name. More...
 
List< Variablevariables = new ArrayList<Variable>()
 Variables that use values calculated by this descriptor. More...
 
int resultId = 0
 Pointer to a specific results among those that are produced by the calculation of this descriptor, or 0 for descriptors that produce a single value. More...
 
String[] dictClasses
 The class(es) of descriptor as define in the descriptor dictionary. More...
 
String dictDefinition
 The Definition of descriptor as define in the descriptor dictionary. More...
 
String dictTitle
 The title of descriptor as define in the descriptor dictionary. More...
 

Static Private Member Functions

static IDescriptor newDescriptorImplementation (DescriptorForFitness oldParent) throws DENOPTIMException
 

Static Private Attributes

static IChemObjectBuilder cdkBuilder
 Utility for constructing CDK objects. More...
 

Detailed Description

This is a reference to a specific descriptor value.

Not the numerical result, but the identity of the value.

Definition at line 37 of file DescriptorForFitness.java.

Constructor & Destructor Documentation

◆ DescriptorForFitness() [1/2]

denoptim.fitness.DescriptorForFitness.DescriptorForFitness ( String  shortName,
String  className,
IDescriptor  implementation,
int  resultId 
)

Definition at line 89 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.className, denoptim.fitness.DescriptorForFitness.implementation, denoptim.fitness.DescriptorForFitness.resultId, and denoptim.fitness.DescriptorForFitness.shortName.

Referenced by denoptim.fitness.DescriptorForFitness.cloneAllButImpl().

Here is the caller graph for this function:

◆ DescriptorForFitness() [2/2]

denoptim.fitness.DescriptorForFitness.DescriptorForFitness ( String  shortName,
String  className,
IDescriptor  implementation,
int  resultId,
String[]  dictClasses,
String  dictDefinition,
String  dictTitle 
)

Member Function Documentation

◆ addDependentVariable()

void denoptim.fitness.DescriptorForFitness.addDependentVariable ( Variable  v)

Append the reference to a variable that used data produced by the calculation of this descriptor.

Parameters
vthe reference to the variable.

Definition at line 301 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.variables.

Referenced by denoptim.fitness.FitnessExpressionParser.parse(), denoptim.fitness.FitnessProviderTest.testGetFitness(), and denoptim.fitness.FitnessProviderTest.testGetFitnessWithCustomDescriptors().

Here is the caller graph for this function:

◆ cloneAllButImpl()

DescriptorForFitness denoptim.fitness.DescriptorForFitness.cloneAllButImpl ( )

This is a sort of cloning that returns a new DescriptorForFitness with the same field content of this one (i.e., deep copy), but a shallow copy of the list of variables, and a null implementation.

The latter will have to be instantiated elsewhere.

Returns
a clone with null descriptor implementation

Definition at line 235 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.className, denoptim.fitness.DescriptorForFitness.DescriptorForFitness(), denoptim.fitness.DescriptorForFitness.dictClasses, denoptim.fitness.DescriptorForFitness.dictDefinition, denoptim.fitness.DescriptorForFitness.dictTitle, denoptim.fitness.DescriptorForFitness.resultId, denoptim.fitness.DescriptorForFitness.setVariables(), denoptim.fitness.DescriptorForFitness.shortName, and denoptim.fitness.DescriptorForFitness.variables.

Referenced by denoptim.fitness.FitnessProvider.FitnessProvider(), and denoptim.fitness.DescriptorForFitness.makeCopy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClassName()

String denoptim.fitness.DescriptorForFitness.getClassName ( )

Definition at line 141 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.className.

Referenced by denoptim.gui.FitnessParametersForm.FitnessParametersForm(), and denoptim.fitness.FitnessProvider.FitnessProvider().

Here is the caller graph for this function:

◆ getDictClasses()

String[] denoptim.fitness.DescriptorForFitness.getDictClasses ( )

Definition at line 169 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.dictClasses.

Referenced by denoptim.gui.FitnessParametersForm.FitnessParametersForm().

Here is the caller graph for this function:

◆ getDictDefinition()

String denoptim.fitness.DescriptorForFitness.getDictDefinition ( )

Definition at line 162 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.dictDefinition.

Referenced by denoptim.gui.FitnessParametersForm.FitnessParametersForm().

Here is the caller graph for this function:

◆ getDictString()

String denoptim.fitness.DescriptorForFitness.getDictString ( )

◆ getDictTitle()

String denoptim.fitness.DescriptorForFitness.getDictTitle ( )

Definition at line 155 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.dictTitle.

Referenced by denoptim.gui.FitnessParametersForm.FitnessParametersForm().

Here is the caller graph for this function:

◆ getImplementation()

IDescriptor denoptim.fitness.DescriptorForFitness.getImplementation ( )

Definition at line 148 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.implementation.

Referenced by denoptim.gui.FitnessParametersForm.FitnessParametersForm().

Here is the caller graph for this function:

◆ getShortName()

String denoptim.fitness.DescriptorForFitness.getShortName ( )

◆ getVariables()

List< Variable > denoptim.fitness.DescriptorForFitness.getVariables ( )

Get the variables that make use of values produced by this descriptor.

Returns
the list of variables.

Definition at line 134 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.variables.

Referenced by denoptim.fitness.FitnessProvider.getFitness(), and denoptim.fitness.FitnessExpressionParserTest.testProcessExpressions().

Here is the caller graph for this function:

◆ makeCopy()

DescriptorForFitness denoptim.fitness.DescriptorForFitness.makeCopy ( ) throws DENOPTIMException

Copy this descriptor and created an independent instance of the underlying descriptor implementation.

Exceptions
DENOPTIMException

Definition at line 251 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.cloneAllButImpl(), and denoptim.fitness.DescriptorForFitness.newDescriptorImplementation().

Referenced by denoptim.fitness.FitnessExpressionParser.parse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newDescriptorImplementation()

static IDescriptor denoptim.fitness.DescriptorForFitness.newDescriptorImplementation ( DescriptorForFitness  oldParent) throws DENOPTIMException
staticprivate

Definition at line 260 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.cdkBuilder, and denoptim.fitness.DescriptorForFitness.className.

Referenced by denoptim.fitness.DescriptorForFitness.makeCopy().

Here is the caller graph for this function:

◆ setVariables()

void denoptim.fitness.DescriptorForFitness.setVariables ( List< Variable variables)

Overwrites the list of variables using this descriptor.

Parameters
variablesthe new list of variable.

Definition at line 123 of file DescriptorForFitness.java.

References denoptim.fitness.DescriptorForFitness.variables.

Referenced by denoptim.fitness.DescriptorForFitness.cloneAllButImpl().

Here is the caller graph for this function:

◆ toString()

Member Data Documentation

◆ cdkBuilder

IChemObjectBuilder denoptim.fitness.DescriptorForFitness.cdkBuilder
staticprivate
Initial value:
=
DefaultChemObjectBuilder.getInstance()

Utility for constructing CDK objects.

Definition at line 84 of file DescriptorForFitness.java.

Referenced by denoptim.fitness.DescriptorForFitness.newDescriptorImplementation().

◆ className

◆ dictClasses

String [] denoptim.fitness.DescriptorForFitness.dictClasses
protected

◆ dictDefinition

String denoptim.fitness.DescriptorForFitness.dictDefinition
protected

◆ dictTitle

String denoptim.fitness.DescriptorForFitness.dictTitle
protected

◆ implementation

IDescriptor denoptim.fitness.DescriptorForFitness.implementation
protected

◆ resultId

int denoptim.fitness.DescriptorForFitness.resultId = 0
protected

Pointer to a specific results among those that are produced by the calculation of this descriptor, or 0 for descriptors that produce a single value.

Definition at line 64 of file DescriptorForFitness.java.

Referenced by denoptim.fitness.DescriptorForFitness.cloneAllButImpl(), denoptim.fitness.DescriptorForFitness.DescriptorForFitness(), and denoptim.fitness.DescriptorForFitness.toString().

◆ shortName

◆ variables


The documentation for this class was generated from the following file: