Package chemaxon.sss.screen
Class StrucFPConfig
java.lang.Object
chemaxon.sss.screen.StrucFPConfig
Utility class for assembling and parsing structural FP configurations.
- Since:
- JChem 3.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates a configuration string according to the internal values.Gets the Molecule objects for the keysGets the original strings for the keysintIndicates the number of 32 bit units needed to store the fingerprint.intIndicates the number of structural keys.booleanIndicates if molecule strings should be interpreted as SMARTS.voidparseConfig(String config) Parses a text configuration, and sets internal values accordingly.voidreadMolecules(InputStream input, boolean smartsMode) Read the structures from a stream.voidsetMolStrings(List<String> strings, boolean smartsMode) 
- 
Constructor Details- 
StrucFPConfigpublic StrucFPConfig()
 
- 
- 
Method Details- 
getMoleculesGets the Molecule objects for the keys- Returns:
- an ArrayList containing Molecule objects
 
- 
getMolStringsGets the original strings for the keys- Returns:
- an ArrayList containing String objects
 
- 
getSmartsModepublic boolean getSmartsMode()Indicates if molecule strings should be interpreted as SMARTS.- Returns:
- true, if strings should be interpreted as SMARTS.
 
- 
parseConfigParses a text configuration, and sets internal values accordingly.- Parameters:
- config- the configuration
- Throws:
- MolFormatException- if the importer encounters a problem
 
- 
getConfigCreates a configuration string according to the internal values.- Returns:
- the configuration string.
 
- 
setMolStrings- Throws:
- MolFormatException
 
- 
readMoleculesRead the structures from a stream.- Parameters:
- input- the input stream
- smartsMode- indicates if the molecule strings should be interpreted as SMARTS.
- Throws:
- IOException- if the inputstream encounters a problem
 
- 
getNumberOfKeyspublic int getNumberOfKeys()Indicates the number of structural keys.- Returns:
- the number of structural keys
- Since:
- JChem 5.0
 
- 
getNumberOfIntegersNeededpublic int getNumberOfIntegersNeeded()Indicates the number of 32 bit units needed to store the fingerprint.- Returns:
- the number of ints needed to accomodate all keys.
- Since:
- JChem 5.0
 
 
-