- All Superinterfaces:
- AbstractAtomRef, AbstractBase, AttributeAtomRefs, AttributeConvention, AttributeDictRef, AttributeId, AttributeTitle, org.w3c.dom.Element, org.w3c.dom.Node
- public interface CMLAtomParity
- extends AbstractAtomRef
CORE Interface
DTD Class
interface supporting atom-based parity . It requires 3 or 4 atomRefs to
define the parity. At present the values are doubles and only the sign is
important (the values could be computed as chiral volumes)
| Fields inherited from interface org.xmlcml.cml.AbstractBase |
ANGLE, ATOM, ATOMARRAY, ATOMPARITY, BOND, BONDARRAY, BONDSTEREO, BUILTIN, CML, CML_PREFIX, CRYSTAL, ELECTRON, ELEMENT_COUNT, ELEMENT_NAMES, EXECUTE, FEATURE, FLOAT_TYPE, FLOATARRAY, FLOATMATRIX, FORMULA, INTEGER, INTEGER_TYPE, INTEGERARRAY, LINK, LIST, MOLECULE, NAMESPACE_URI, PACKAGE_NAME, REACTION, SEQUENCE, STRING, STRING_TYPE, STRINGARRAY, TORSION, UNK, UNK_ELEM, UNKNOWN |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
FLOAT
public static final java.lang.String FLOAT
- See Also:
- Constant Field Values
SYMBOL
public static final java.lang.String SYMBOL
- See Also:
- Constant Field Values
TWODIM
public static final int TWODIM
- See Also:
- Constant Field Values
THREEDIM
public static final int THREEDIM
- See Also:
- Constant Field Values
MINRAD
public static final double MINRAD
- minimum improper torsion angle to be regarded as chiral
- See Also:
- Constant Field Values
EPSILON
public static final double EPSILON
- minimum acceptable absolute value for parity, else assumed 0
- See Also:
- Constant Field Values
PLANARITYLIMIT
public static final double PLANARITYLIMIT
- maximum acceptable absolute value for planarity, else assumed 0 (Experimental)
- See Also:
- Constant Field Values
equals
public boolean equals(java.lang.Object obj)
- are two parities equal? They must be zero or have identical signs
isZero
public boolean isZero()
- true if parity is zero (i.e. not chiral
getType
public java.lang.String getType()
- get the type of the parity
getFloat
public double getFloat()
throws CMLException
- CORE Method
Assumes that atom has a single parity - identical for 2D and 3D alike
getFloat
public double getFloat(int Dimension,
CMLAtom atomUp)
throws CMLException
- get the actual parity as represented by the coordinates. cannot be set.
setFloat
public void setFloat(int dimension,
double value)
throws CMLException
- set the parity (independent of coordinates). If dimension is zero, coordinates
are not checked - this could lead to problems. If dimension is TWODIM, THREEDIM or
TWODIM+THREEDIM,
the coordinates are checked and if there is an inconsistency an exception is thrown
getSymbol
public CMLSymbol getSymbol()
throws CMLException
- returns a floating point value; exception provides for symbolic values later
getSMILES
public java.lang.String getSMILES()
- SMILES representation (deals with [...], etc)
toString
public java.lang.String toString()
- String representation