public static class NMRCalculator.Builder extends Object implements chemaxon.calculator.CalculatorBuilder<NMRCalculator>
Constructor and Description |
---|
NMRCalculator.Builder() |
Modifier and Type | Method and Description |
---|---|
NMRCalculator |
build() |
String |
getFormat()
Spectrum export format.
|
double |
getFrequency()
Gets the NMR frequency.
|
chemaxon.calculator.CalculatorLogger |
getLogger()
Gets the calculator logger.
|
NMRSpectrum.Nucleus |
getNucleus()
Gets the nucleus type.
|
NMRSpectrum.Unit |
getUnit()
Gets the NMR unit.
|
boolean |
isCoupled()
Tells whether the spectrum is coupled.
|
NMRCalculator.Builder |
setCoupled(boolean coupled)
Coupled/decoupled spectrum.
|
NMRCalculator.Builder |
setFormat(String format)
Sets the spectrum export format.
|
NMRCalculator.Builder |
setFrequency(double frequency)
Sets NMR measurement frequency.
|
NMRCalculator.Builder |
setLogger(chemaxon.calculator.CalculatorLogger logger) |
NMRCalculator.Builder |
setNucleus(NMRSpectrum.Nucleus nucleus)
Sets the NMR active nucleus.
|
NMRCalculator.Builder |
setUnit(NMRSpectrum.Unit unit)
Sets NMR spectrum unit.
|
public NMRSpectrum.Nucleus getNucleus()
NMRSpectrum.Nucleus.C13
or
NMRSpectrum.Nucleus.H1
public NMRCalculator.Builder setNucleus(NMRSpectrum.Nucleus nucleus)
NMRSpectrum.Nucleus.C13
.nucleus
- NMRSpectrum.Nucleus.C13
or NMRSpectrum.Nucleus.H1
public NMRSpectrum.Unit getUnit()
NMRSpectrum.Unit.ppm
or
NMRSpectrum.Unit.Hz
public NMRCalculator.Builder setUnit(NMRSpectrum.Unit unit)
NMRSpectrum.Unit.ppm
unit
- NMRSpectrum.Unit.ppm
or NMRSpectrum.Unit.Hz
public String getFormat()
public NMRCalculator.Builder setFormat(String format)
format
- public boolean isCoupled()
public NMRCalculator.Builder setCoupled(boolean coupled)
coupled
- True if coupled spectrum is needed, false otherwise.public double getFrequency()
public NMRCalculator.Builder setFrequency(double frequency)
frequency
- NMR frequency in MHz.public chemaxon.calculator.CalculatorLogger getLogger()
public NMRCalculator build()
build
in interface chemaxon.calculator.CalculatorBuilder<NMRCalculator>
public NMRCalculator.Builder setLogger(chemaxon.calculator.CalculatorLogger logger)
setLogger
in interface chemaxon.calculator.CalculatorBuilder<NMRCalculator>