Package chemaxon.calculations.nmr
Class NMRCalculator.Builder
java.lang.Object
chemaxon.calculations.nmr.NMRCalculator.Builder
- All Implemented Interfaces:
chemaxon.calculator.CalculatorBuilder<NMRCalculator>
- Enclosing class:
- NMRCalculator
public static class NMRCalculator.Builder
extends Object
implements chemaxon.calculator.CalculatorBuilder<NMRCalculator>
Builder class for NMRCalculator.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Spectrum export format.double
Gets the NMR frequency.chemaxon.calculator.CalculatorLogger
Gets the calculator logger.Gets the nucleus type.getUnit()
Gets the NMR unit.boolean
Tells whether the spectrum is coupled.setCoupled
(boolean coupled) Coupled/decoupled spectrum.Sets the spectrum export format.setFrequency
(double frequency) Sets NMR measurement frequency.setLogger
(chemaxon.calculator.CalculatorLogger logger) setNucleus
(NMRSpectrum.Nucleus nucleus) Sets the NMR active nucleus.setUnit
(NMRSpectrum.Unit unit) Sets NMR spectrum unit.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getNucleus
Gets the nucleus type.- Returns:
NMRSpectrum.Nucleus.C13
orNMRSpectrum.Nucleus.H1
-
setNucleus
Sets the NMR active nucleus.NMRSpectrum.Nucleus.C13
.- Parameters:
nucleus
-NMRSpectrum.Nucleus.C13
orNMRSpectrum.Nucleus.H1
- Returns:
- Builder for NMRCalculator.
-
getUnit
Gets the NMR unit.- Returns:
NMRSpectrum.Unit.ppm
orNMRSpectrum.Unit.Hz
-
setUnit
Sets NMR spectrum unit. Default value isNMRSpectrum.Unit.ppm
- Parameters:
unit
-NMRSpectrum.Unit.ppm
orNMRSpectrum.Unit.Hz
- Returns:
- Builder for NMRCalculator.
-
getFormat
Spectrum export format.- Returns:
- format
-
setFormat
Sets the spectrum export format.- Returns:
- Builder for NMRCalculator.
-
isCoupled
public boolean isCoupled()Tells whether the spectrum is coupled.- Returns:
- true if spin-spin couplings are taken into account.
-
setCoupled
Coupled/decoupled spectrum. Default value is true.- Parameters:
coupled
- True if coupled spectrum is needed, false otherwise.- Returns:
- Builder for NMRCalculator.
-
getFrequency
public double getFrequency()Gets the NMR frequency.- Returns:
- frequency in MHz.
-
setFrequency
Sets NMR measurement frequency. Default value is 500 MHz.- Parameters:
frequency
- NMR frequency in MHz.- Returns:
- Builder for NMRCalculator.
-
getLogger
public chemaxon.calculator.CalculatorLogger getLogger()Gets the calculator logger. For internal use only.- Returns:
- logger
-
build
- Specified by:
build
in interfacechemaxon.calculator.CalculatorBuilder<NMRCalculator>
-
setLogger
- Specified by:
setLogger
in interfacechemaxon.calculator.CalculatorBuilder<NMRCalculator>
-