Package org.openscience.cdk.rinchi
Class RInChIOptions.RInChIOptionBuilder
java.lang.Object
org.openscience.cdk.rinchi.RInChIOptions.RInChIOptionBuilder
- Enclosing class:
- RInChIOptions
Builder class for constructing instances of RInChIOptions with customized settings.
Default values are
Default values are
forceEquilibrium: falsetimeout: not specified
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an instance ofRInChIOptionsusing the configuration of this {code }RInChIOptionBuilder}.forceEquilibrium(boolean forceEquilibrium) Sets the option to force equilibrium processing in the RInChIOptions.timeoutMillisecondsPerComponent(long timeoutMillisecondsPerComponent) Sets the timeout in milliseconds for processing each reaction component in this RInChIOptions.
-
Method Details
-
forceEquilibrium
Sets the option to force equilibrium processing in the RInChIOptions.- Parameters:
forceEquilibrium- a boolean indicating whether to force equilibrium processing- Returns:
- the current instance of RInChIOptionBuilder
-
timeoutMillisecondsPerComponent
public RInChIOptions.RInChIOptionBuilder timeoutMillisecondsPerComponent(long timeoutMillisecondsPerComponent) Sets the timeout in milliseconds for processing each reaction component in this RInChIOptions.- Parameters:
timeoutMillisecondsPerComponent- the timeout duration for each component, must be zero or positive- Returns:
- the current instance of RInChIOptionBuilder
- Throws:
IllegalArgumentException- if the specified timeout is negative
-
build
Creates an instance ofRInChIOptionsusing the configuration of this {code }RInChIOptionBuilder}.- Returns:
- new RInChIOptions instance
-