$darkmode
DENOPTIM
|
A class for iterating over sets of ring combinations generated by considering any constrain and setting defined in the fragment space and ring-closure settings and by randomly picking candidates when no criterion can be used to take an informed decision. More...
Public Member Functions | |
RandomCombOfRingsIterator (IAtomContainer iac, DGraph molGraph, int maxRingClosures, FragmentSpace fragSpace, RingClosureParameters rcParams) throws DENOPTIMException | |
Constructs an iterator. More... | |
boolean | hasNext () |
Always returns true because we allow duplicates. More... | |
List< Ring > | next () |
Private Attributes | |
IAtomContainer | originalMol |
Chemical representation of the system we work with. More... | |
DGraph | molGraph |
Graph representation of the system we work with. More... | |
int | maxRingClosures = -1 |
Max number of ring closures to consider in a valid combination of rings. More... | |
FragmentSpace | fragSpace |
Space of building blocks. More... | |
RingClosureParameters | settings |
Parameters related to rings. More... | |
A class for iterating over sets of ring combinations generated by considering any constrain and setting defined in the fragment space and ring-closure settings and by randomly picking candidates when no criterion can be used to take an informed decision.
Note this iterator loops infinitely, i.e., hasNext()
returns always true
.
Definition at line 26 of file RandomCombOfRingsIterator.java.
denoptim.graph.rings.RandomCombOfRingsIterator.RandomCombOfRingsIterator | ( | IAtomContainer | iac, |
DGraph | molGraph, | ||
int | maxRingClosures, | ||
FragmentSpace | fragSpace, | ||
RingClosureParameters | rcParams | ||
) | throws DENOPTIMException |
Constructs an iterator.
inMol | |
molGraph | |
maxRingClosures |
DENOPTIMException |
Definition at line 63 of file RandomCombOfRingsIterator.java.
References denoptim.graph.rings.RandomCombOfRingsIterator.fragSpace, denoptim.graph.rings.RandomCombOfRingsIterator.maxRingClosures, and denoptim.graph.rings.RandomCombOfRingsIterator.molGraph.
boolean denoptim.graph.rings.RandomCombOfRingsIterator.hasNext | ( | ) |
Always returns true
because we allow duplicates.
Definition at line 80 of file RandomCombOfRingsIterator.java.
List< Ring > denoptim.graph.rings.RandomCombOfRingsIterator.next | ( | ) |
Definition at line 88 of file RandomCombOfRingsIterator.java.
References denoptim.graph.rings.RingSizeManager.addRingClosingBond(), denoptim.graph.rings.RandomCombOfRingsIterator.fragSpace, denoptim.graph.Edge.getBondType(), denoptim.graph.Vertex.getEdgeToParent(), denoptim.programs.RunTimeParameters.getRandomizer(), denoptim.graph.rings.RingSizeManager.getRSBiasedListOfCandidates(), denoptim.graph.rings.PathSubGraph.getVertecesPath(), denoptim.graph.rings.RingSizeManager.initialize(), denoptim.graph.rings.PathClosabilityTools.isCloseable(), denoptim.graph.rings.RandomCombOfRingsIterator.maxRingClosures, denoptim.graph.rings.RandomCombOfRingsIterator.molGraph, denoptim.utils.Randomizer.nextInt(), denoptim.graph.rings.RandomCombOfRingsIterator.originalMol, denoptim.graph.Ring.setBondType(), denoptim.graph.rings.RandomCombOfRingsIterator.settings, and denoptim.graph.rings.RingSizeManager.setVertexAsDone().
Referenced by denoptim.ga.GraphOperations.addRing(), denoptim.graph.rings.CyclicGraphHandler.getRandomCombinationOfRings(), and denoptim.graph.rings.RandomCombOfRingIteratorTest.testEvaluateConstitutionalClosability().
|
private |
Space of building blocks.
Definition at line 46 of file RandomCombOfRingsIterator.java.
Referenced by denoptim.graph.rings.RandomCombOfRingsIterator.next(), and denoptim.graph.rings.RandomCombOfRingsIterator.RandomCombOfRingsIterator().
|
private |
Max number of ring closures to consider in a valid combination of rings.
Definition at line 41 of file RandomCombOfRingsIterator.java.
Referenced by denoptim.graph.rings.RandomCombOfRingsIterator.next(), and denoptim.graph.rings.RandomCombOfRingsIterator.RandomCombOfRingsIterator().
|
private |
Graph representation of the system we work with.
Definition at line 36 of file RandomCombOfRingsIterator.java.
Referenced by denoptim.graph.rings.RandomCombOfRingsIterator.next(), and denoptim.graph.rings.RandomCombOfRingsIterator.RandomCombOfRingsIterator().
|
private |
Chemical representation of the system we work with.
Definition at line 31 of file RandomCombOfRingsIterator.java.
Referenced by denoptim.graph.rings.RandomCombOfRingsIterator.next().
|
private |
Parameters related to rings.
Definition at line 51 of file RandomCombOfRingsIterator.java.
Referenced by denoptim.graph.rings.RandomCombOfRingsIterator.next().