public static class ThreadLocalizedEcfpParameters.Builder extends Object implements ParameterBuilder<ThreadLocalizedEcfpParameters>
ThreadLocalizedEcfpParameters
.Constructor and Description |
---|
Builder()
Construct.
|
Builder(ThreadLocalizedEcfpParameters parameters)
Construct from the state of a
ThreadLocalizedEcfpParameters . |
Modifier and Type | Method and Description |
---|---|
ThreadLocalizedEcfpParameters.Builder |
atomTypizer(EcfpAtomTypizers atomTypizer)
Set atom typizer to use.
|
ThreadLocalizedEcfpParameters |
build()
Build immutable representation.
|
ThreadLocalizedEcfpParameters.Builder |
diameter(int diameter)
Sets diameter.
|
ThreadLocalizedEcfpParameters.Builder |
identifierConfigurationXml(String identifierConfigurationXml)
Set identifier configuration XML to use for custom typizer.
|
ThreadLocalizedEcfpParameters.Builder |
length(int length)
Set fingerprint length, the bit count of the folded binary fingerprint representation.
|
public Builder()
public Builder(ThreadLocalizedEcfpParameters parameters)
ThreadLocalizedEcfpParameters
.parameters
- State to reflect.public ThreadLocalizedEcfpParameters.Builder diameter(int diameter)
diameter
- Diameter to setIllegalArgumentException
- when the set diameter is a negative or odd numberpublic ThreadLocalizedEcfpParameters.Builder length(int length)
length
- new lengthIllegalArgumentException
- when the set length is not a positive number, or not multiply of 32public ThreadLocalizedEcfpParameters.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 ThreadLocalizedEcfpParameters.Builder identifierConfigurationXml(String identifierConfigurationXml)
EcfpAtomTypizers.CUSTOMXML
with
atomTypizer(com.chemaxon.descriptors.fingerprints.ecfp.EcfpAtomTypizers)
.identifierConfigurationXml
- Identifier configuration XML.public ThreadLocalizedEcfpParameters build()
build
in interface ParameterBuilder<ThreadLocalizedEcfpParameters>