19package denoptim.graph.rings;
21import java.util.HashMap;
22import java.util.HashSet;
26import org.openscience.cdk.interfaces.IAtom;
27import org.openscience.cdk.interfaces.IAtomContainer;
29import denoptim.constants.DENOPTIMConstants;
30import denoptim.graph.APClass;
31import denoptim.graph.Edge.BondType;
32import denoptim.graph.Ring;
33import denoptim.utils.MoleculeUtils;
53 final Map<String,Double>
paramAR11 =
new HashMap<String,Double>() {
57 private static final long serialVersionUID = 1L;
69 final Map<String,Double>
paramBR11 =
new HashMap<String,Double>() {
73 private static final long serialVersionUID = 1L;
84 final Map<String,Double>
paramAR12 =
new HashMap<String,Double>() {
88 private static final long serialVersionUID = 1L;
99 final Map<String,Double>
paramBR12 =
new HashMap<String,Double>() {
103 private static final long serialVersionUID = 1L;
173 new HashMap<APClass,String>(){
177 private static final long serialVersionUID = 1L;
184 }
catch (Throwable t)
194 new HashSet<APClass>(){
198 private static final long serialVersionUID = 1L;
213 new HashMap<APClass,APClass>()
218 private static final long serialVersionUID = 3L;
234 new HashMap<String,String>()
239 private static final long serialVersionUID = 3L;
300 this.src = mol.getConnectedAtomsList(
atm).get(0);
307 this.ringUser = (
Ring)
atm.getProperty(
322 return (this.attType.equals(
"none")) ? false :
true;
508 String s =
"RingClosingAttractor (Type:" + this.attType +
" "
509 +
"APClass:" + this.apClass +
" "
510 +
"Used:" + this.used +
" "
General set of constants used in DENOPTIM.
static final Object RCAPROPRINGUSER
Property of a IAtom representing a RingClosingAttractor.
static final Object RCAPROPCHORDBNDTYP
Property of a IAtom representing a RingClosingAttractor.
static final Object RCAPROPAPCTORCA
Property of a IAtom representing a RingClosingAttractor.
static final APClass RCACLASSPLUS
Conventional class of attachment points on ring-closing vertexes.
static final APClass RCACLASSMINUS
Conventional class of attachment points on ring-closing vertexes.
static final APClass RCACLASSNEUTRAL
Conventional class of attachment points on ring-closing vertexes.
This class represents the closure of a ring in a spanning tree.
The RingClosingAttractor represent the available valence/connection that allows to close a ring.
Double attB12
Parameter B for 1,2 interaction.
Ring getRingUser()
Get the reference to the graph representation of the ring this attractor is meant to close.
boolean isAttractor()
Checks whether the constructed RingClosingAttractor does corresponds to a RingClosingAttractor in the...
IAtom atm
Pseudo atom representing RingClosingAttractor in molecule.
static final HashMap< APClass, String > RCALABELPERAPCLASS
Conventional labels for attractor pseudoatom.
final Map< String, Double > paramAR12
Parameter A for points in 1,2 relationship.
boolean used
Flag: this RingClosingAttractor is used to close a ring.
static final Set< APClass > RCAAPCLASSSET
Recognized APClass for RingClosingAttractor.
IAtom getSrcAtom()
Get the atom in the parent fragment that holds the attachment point occupied by this RingClosingAttra...
boolean isCompatible(RingClosingAttractor other)
Evaluate compatibility between this RingClosingAttractor and another one.
final Map< String, Double > paramBR12
Parameter B for points in 1,2 relationship.
String getType()
Get the type of RingClosingAttractor.
void setIAtom(IAtom atm)
Change the reference to the atom in the molecular representation.
Double attB11
Parameter B for 1,1 interaction.
void setUsed()
Set this RingClosingAttractor to 'used'.
Double attA12
Parameter A for 1,2 interaction.
IAtom getIAtom()
Get the atom corresponding to this RingClosingAttractor in the molecular representation.
String attType
Type of this attractor.
static final Map< APClass, APClass > RCAAPCMAP
Recognized APClasses on RingClosingAttractor and compatible types.
Double attA11
Parameter A for 1,1 interaction.
RingClosingAttractor()
Constructor for an empty RingClosingAttractor.
final Map< String, Double > paramAR11
Parameter A for points in 1,1 relationship.
APClass getApClass()
Get the class of the Attachment Point occupied (i.e., in the parent fragment) by this RingClosingAttr...
RingClosingAttractor(IAtom atm, IAtomContainer mol)
Constructor for a RingClosingAttractor corresponding to an atom in an IAtomContainer.
static final Map< String, String > RCATYPEMAP
Recognized types of RingClosingAttractor and compatible types.
BondType bndTyp
Type of ring-closing bond that this ring-closing attractor is there to create.
BondType getRCBondType()
Get the type of bond this attractor is meant to close.
APClass apClass
Class of the Attachment Point represented by this RCA.
IAtom src
Atom hosting the RingClosingAttractor.
Ring ringUser
Reference to the graph Ring that represent the intention to close a ring of vertices in DENOPTIM's gr...
boolean isUsed()
Check if this RingClosingAttractor has been used to close a ring and is not available any more.
final Map< String, Double > paramBR11
Parameter B for points in 1,1 relationship.
Utilities for molecule conversion.
static String getSymbolOrLabel(IAtom atm)
Gets either the elemental symbol (for standard atoms) of the label (for pseudo-atoms).
Possible chemical bond types an edge can represent.