public static class EcfpParameters.Builder extends Object implements ParameterBuilder<EcfpParameters>
Constructor and Description |
---|
Builder()
Constructor with default settings.
|
Builder(EcfpParameters parameters)
Constructor based on a parameter object.
|
Modifier and Type | Method and Description |
---|---|
EcfpParameters.Builder |
atomTypizer(EcfpAtomTypizers atomTypizer)
Set atom typizer to use.
|
EcfpParameters |
build()
Constructs an immutable instance of T.
|
EcfpParameters.Builder |
diameter(int diameter)
Sets diameter.
|
EcfpParameters.Builder |
identifierConfigurationXml(String identifierConfigurationXml)
Set identifier configuration XML to use for custom typizer.
|
EcfpParameters.Builder |
length(int length)
Set fingerprint length, the bit count of the folded binary fingerprint representation.
|
public Builder()
public Builder(EcfpParameters parameters)
parameters
- Parameter objectpublic EcfpParameters.Builder diameter(int diameter)
diameter
- Diameter to setIllegalArgumentException
- when the set diameter is a negative or odd numberpublic EcfpParameters.Builder length(int length)
length
- new lengthIllegalArgumentException
- when the set length is not a positive number, or not multiply of 32public EcfpParameters.Builder atomTypizer(EcfpAtomTypizers atomTypizer)
atomTypizer
- Atom typizer to use. Note that when EcfpAtomTypizers.CUSTOMXML
is used then the
identifier configuration must be set by #identifierConfigurationXmlForCustom(java.lang.String)
.public EcfpParameters.Builder identifierConfigurationXml(String identifierConfigurationXml)
EcfpAtomTypizers.CUSTOMXML
with
atomTypizer(com.chemaxon.descriptors.fingerprints.ecfp.EcfpAtomTypizers)
.identifierConfigurationXml
- Identifier configuration XML.public EcfpParameters build()
ParameterBuilder
build
in interface ParameterBuilder<EcfpParameters>