Logo Search packages:      
Sourcecode: cdk version File versions  Download package

Static Public Attributes

org::openscience::cdk::tools::DataFeatures Class Reference

List of all members.

Static Public Attributes

static final int HAS_2D_COORDINATES = 1<<0
static final int HAS_3D_COORDINATES = 1<<1
static final int HAS_ATOM_ELEMENT_SYMBOL = 1<<3
static final int HAS_ATOM_FORMAL_CHARGES = 1<<5
static final int HAS_ATOM_HYBRIDIZATIONS = 1<<6
static final int HAS_ATOM_ISOTOPE_NUMBERS = 1<<8
static final int HAS_ATOM_MASS_NUMBERS = 1<<7
static final int HAS_ATOM_PARTIAL_CHARGES = 1<<4
static final int HAS_DIETZ_REPRESENTATION = 1<<10
static final int HAS_FRACTIONAL_CRYSTAL_COORDINATES = 1<<2
static final int HAS_GRAPH_REPRESENTATION = 1<<9
static final int HAS_REACTIONS = 1<<12
static final int HAS_UNITCELL_PARAMETERS = 1<<11
static final int NONE = 0

Detailed Description

Class with constants for possible data features defined in the a Data Feature Ontology. Actual integers are random and should not be used directly.

To test whether a IChemFormat supports a certain feature, the following code can be used:

 int features = new XYZFormat().getSupportedDataFeatures();
 boolean has3DCoords = (features & HAS_3D_COORDINATES) == HAS_3D_COORDINATES;
 

This list of constants matches the latest Blue Obelisk Data Features Ontology.

Author:
Egon Willighagen <ewilligh@uni-koeln.de> .module annotation .githash

Definition at line 50 of file DataFeatures.java.


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

Generated by  Doxygen 1.6.0   Back to index