$darkmode
DENOPTIM
denoptim.ga.EAUtilsTest Class Reference

Unit test. More...

Collaboration diagram for denoptim.ga.EAUtilsTest:
[legend]

Public Member Functions

void testBuildGraphFromTemplateScaffold () throws Exception
 
void testAvoidRedundantXOver () throws Exception
 
void testBuildByXOver_SubGraph () throws Exception
 
void testBuildByXOver_Embedded_Free () throws Exception
 NB: the graphs from methods getPairOfTestGraphsB() and getPairOfTestGraphsBxo() and
getPairOfTestGraphsBxoxo() are a sequence resulting from crossover operations. More...
 
void testBuildByXOver_Embedded_FreeBackwards () throws Exception
 NB: the graphs from methods getPairOfTestGraphsB() and getPairOfTestGraphsBxo() and
getPairOfTestGraphsBxoxo() are a sequence resulting from crossover operations. More...
 
void testBuildByXOver_Embedded_FixedStructure () throws Exception
 
void testCandidateGenerationMethod () throws Exception
 
void testCandidateGenerationMethodReproducibility () throws Exception
 
void testCrowdingProbability () throws Exception
 
void testSelectNonScaffoldNonCapVertex () throws Exception
 
void testChooseNumberOfSitesToMutate () throws Exception
 
void testMakeGraphFromFragmentationOfMol () throws Exception
 
void testMakeGraphFromFragmentationOfMol_ScaffoldingPolicy () throws Exception
 
void testMakeGraphFromFragmentationOfMol_Symmetry () throws Exception
 
void testMakeGraphFromFragmentationOfMol_linearities () throws Exception
 
void testMakeGraphFromFragmentationOfMol_symmetry () throws Exception
 Test the detection of "some" symmetry. More...
 

Static Package Attributes

static File tempDir
 

Private Member Functions

FragmentSpaceParameters prepare () throws DENOPTIMException
 

Private Attributes

IChemObjectBuilder builder = SilentChemObjectBuilder.getInstance()
 Private builder of atom containers. More...
 

Static Private Attributes

static APClass APCA
 
static APClass APCB
 
static APClass APCC
 
static String a ="A"
 
static String b ="B"
 
static String c ="C"
 
static final String SEP = System.getProperty("file.separator")
 
static final String NL = System.getProperty("line.separator")
 

Detailed Description

Unit test.

Author
Marco Foscato

Definition at line 76 of file EAUtilsTest.java.

Member Function Documentation

◆ prepare()

FragmentSpaceParameters denoptim.ga.EAUtilsTest.prepare ( ) throws DENOPTIMException
private

◆ testAvoidRedundantXOver()

◆ testBuildByXOver_Embedded_FixedStructure()

◆ testBuildByXOver_Embedded_Free()

void denoptim.ga.EAUtilsTest.testBuildByXOver_Embedded_Free ( ) throws Exception

NB: the graphs from methods getPairOfTestGraphsB() and getPairOfTestGraphsBxo() and
getPairOfTestGraphsBxoxo() are a sequence resulting from crossover operations.

Note that the order of APs in on the templates changes as a result of the crossover. For this reason, the backwards crossover of the graphs from getPairOfTestGraphsBxo() does not produce the graphs from getPairOfTestGraphsB(), but those from getPairOfTestGraphsBxoxo().

Definition at line 337 of file EAUtilsTest.java.

References denoptim.ga.Population.add(), denoptim.ga.EAUtils.buildCandidateByXOver(), denoptim.graph.Template.ContractLevel.FREE, denoptim.graph.Candidate.getGraph(), denoptim.ga.PopulationTest.getPairOfTestGraphsB(), denoptim.ga.PopulationTest.getPairOfTestGraphsBxo(), denoptim.graph.DGraph.getVertexAtPosition(), denoptim.ga.PopulationTest.prepare(), and denoptim.graph.DGraph.sameAs().

Here is the call graph for this function:

◆ testBuildByXOver_Embedded_FreeBackwards()

void denoptim.ga.EAUtilsTest.testBuildByXOver_Embedded_FreeBackwards ( ) throws Exception

NB: the graphs from methods getPairOfTestGraphsB() and getPairOfTestGraphsBxo() and
getPairOfTestGraphsBxoxo() are a sequence resulting from crossover operations.

Note that the order of APs in on the templates changes as a result of the crossover. For this reason, the backwards crossover of the graphs from getPairOfTestGraphsBxo() does not produce the graphs from getPairOfTestGraphsB(), but those from getPairOfTestGraphsBxoxo().

Definition at line 396 of file EAUtilsTest.java.

References denoptim.ga.Population.add(), denoptim.ga.EAUtils.buildCandidateByXOver(), denoptim.graph.Template.ContractLevel.FREE, denoptim.graph.Candidate.getGraph(), denoptim.ga.PopulationTest.getPairOfTestGraphsBxo(), denoptim.ga.PopulationTest.getPairOfTestGraphsBxoxo(), denoptim.graph.DGraph.getVertexAtPosition(), denoptim.ga.PopulationTest.prepare(), and denoptim.graph.DGraph.sameAs().

Here is the call graph for this function:

◆ testBuildByXOver_SubGraph()

void denoptim.ga.EAUtilsTest.testBuildByXOver_SubGraph ( ) throws Exception

◆ testBuildGraphFromTemplateScaffold()

void denoptim.ga.EAUtilsTest.testBuildGraphFromTemplateScaffold ( ) throws Exception

Definition at line 189 of file EAUtilsTest.java.

References denoptim.ga.EAUtils.buildGraph(), denoptim.graph.Template.getMutationSites(), denoptim.graph.DGraph.getVertexAtPosition(), denoptim.ga.EAUtilsTest.prepare(), and denoptim.programs.RunTimeParameters.setParameters().

Here is the call graph for this function:

◆ testCandidateGenerationMethod()

void denoptim.ga.EAUtilsTest.testCandidateGenerationMethod ( ) throws Exception

Definition at line 554 of file EAUtilsTest.java.

References denoptim.ga.EAUtilsTest.c, and denoptim.ga.EAUtils.pickNewCandidateGenerationMode().

Here is the call graph for this function:

◆ testCandidateGenerationMethodReproducibility()

void denoptim.ga.EAUtilsTest.testCandidateGenerationMethodReproducibility ( ) throws Exception

Definition at line 594 of file EAUtilsTest.java.

References denoptim.ga.EAUtils.pickNewCandidateGenerationMode().

Here is the call graph for this function:

◆ testChooseNumberOfSitesToMutate()

void denoptim.ga.EAUtilsTest.testChooseNumberOfSitesToMutate ( ) throws Exception

Definition at line 720 of file EAUtilsTest.java.

References denoptim.ga.EAUtils.chooseNumberOfSitesToMutate().

Here is the call graph for this function:

◆ testCrowdingProbability()

void denoptim.ga.EAUtilsTest.testCrowdingProbability ( ) throws Exception

Definition at line 643 of file EAUtilsTest.java.

References denoptim.graph.Vertex.getAP(), denoptim.graph.DGraph.getAttachmentPoints(), denoptim.ga.EAUtils.getCrowdingProbability(), denoptim.graph.DGraph.getVertexAtPosition(), and denoptim.graph.DGraphTest.makeTestGraphA().

Here is the call graph for this function:

◆ testMakeGraphFromFragmentationOfMol()

◆ testMakeGraphFromFragmentationOfMol_linearities()

◆ testMakeGraphFromFragmentationOfMol_ScaffoldingPolicy()

◆ testMakeGraphFromFragmentationOfMol_Symmetry()

void denoptim.ga.EAUtilsTest.testMakeGraphFromFragmentationOfMol_Symmetry ( ) throws Exception

◆ testMakeGraphFromFragmentationOfMol_symmetry()

void denoptim.ga.EAUtilsTest.testMakeGraphFromFragmentationOfMol_symmetry ( ) throws Exception

Test the detection of "some" symmetry.

: a topology that would result in something close to a C3 point group geometry. Three symmetric branches that form a three-cyclic system. This method tests the capacity to detect that vertexes that have no sym set of APs but can be flagged as symmetric because they are part of a chain rooted on a vertex with sym APs (i.e., the bridge head).

Definition at line 1135 of file EAUtilsTest.java.

References denoptim.ga.EAUtilsTest.builder, denoptim.fragmenter.ScaffoldingPolicy.ELEMENT, denoptim.programs.RunTimeParameters.getLogger(), denoptim.graph.DGraph.getSymmetricSetCount(), denoptim.graph.DGraph.getSymSetForVertex(), denoptim.graph.DGraph.getVertexWithId(), and denoptim.ga.EAUtils.makeGraphFromFragmentationOfMol().

Here is the call graph for this function:

◆ testSelectNonScaffoldNonCapVertex()

void denoptim.ga.EAUtilsTest.testSelectNonScaffoldNonCapVertex ( ) throws Exception

Member Data Documentation

◆ a

String denoptim.ga.EAUtilsTest.a ="A"
staticprivate

◆ APCA

APClass denoptim.ga.EAUtilsTest.APCA
staticprivate

Definition at line 79 of file EAUtilsTest.java.

Referenced by denoptim.ga.EAUtilsTest.prepare().

◆ APCB

APClass denoptim.ga.EAUtilsTest.APCB
staticprivate

Definition at line 79 of file EAUtilsTest.java.

Referenced by denoptim.ga.EAUtilsTest.prepare().

◆ APCC

APClass denoptim.ga.EAUtilsTest.APCC
staticprivate

Definition at line 79 of file EAUtilsTest.java.

Referenced by denoptim.ga.EAUtilsTest.prepare().

◆ b

String denoptim.ga.EAUtilsTest.b ="B"
staticprivate

Definition at line 80 of file EAUtilsTest.java.

Referenced by denoptim.ga.EAUtilsTest.prepare().

◆ builder

◆ c

String denoptim.ga.EAUtilsTest.c ="C"
staticprivate

◆ NL

final String denoptim.ga.EAUtilsTest.NL = System.getProperty("line.separator")
staticprivate

◆ SEP

final String denoptim.ga.EAUtilsTest.SEP = System.getProperty("file.separator")
staticprivate

◆ tempDir

File denoptim.ga.EAUtilsTest.tempDir
staticpackage

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