Loading...
Searching...
No Matches
AisConstantCurrentElement.h
1#pragma once
2
3#include "AisAbstractElement.h"
4#include "AisSquidstatGlobal.h"
5#include <QString>
6
7class ConstantCurrentAdvElement;
8
18class SQUIDSTATLIBRARY_EXPORT AisConstantCurrentElement final : public AisAbstractElement {
19public:
27 double current,
28 double samplingInterval,
29 double duration);
38
40
45 QString getName() const override;
46
51 QStringList getCategory() const override;
52
57 double getCurrent() const;
58
63 void setCurrent(double current);
64
69 double getSamplingInterval() const;
70
75 void setSamplingInterval(double samplingInterval);
76
86
99 void setMinSamplingVoltageDifference(double minVoltageDifference);
100
107 double getMaxVoltage() const;
108
117 void setMaxVoltage(double maxVoltage);
118
124 double getMinVoltage() const;
125
134 void setMinVoltage(double minVoltage);
135
141 double getMaxDuration() const;
142
149 void setMaxDuration(double maxDuration);
150
156 double getMaxCapacity() const;
157
166 void setMaxCapacity(double maxCapacity);
167
172 bool isAutoRange() const;
173
180
186 double getApproxMaxCurrent() const;
187
195 void setApproxMaxCurrent(double approxMaxCurrent);
196
201 bool isAutoVoltageRange() const;
202
209
210
216 double getApproxMaxVoltage() const;
217
225 void setApproxMaxVoltage(double approxMaxVoltage);
226
227private:
228 std::shared_ptr<ConstantCurrentAdvElement> m_dataDerived;
229};
an experiment that simulates a constant current flow with more advance options for stopping the exper...
Definition AisConstantCurrentElement.h:18
double getApproxMaxVoltage() const
get the value set for the expected maximum voltage.
double getMaxVoltage() const
get the value set for the maximum voltage. The experiment will end when it reaches this value.
void setMaxCapacity(double maxCapacity)
set the value for the maximum capacity / cumulative charge in Coulomb.
AisConstantCurrentElement & operator=(const AisConstantCurrentElement &)
overload equal to operator for the AisConstantCurrentElement object.
void setSamplingInterval(double samplingInterval)
set how frequently we are sampling the data.
QString getName() const override
get the name of the element.
void setApproxMaxCurrent(double approxMaxCurrent)
set maximum current expected, for manual current range selection.
double getApproxMaxCurrent() const
get the value set for the expected maximum current.
void setAutoRange()
set to auto-select the current range.
double getMaxDuration() const
get the maximum duration set for the experiment. The experiment will end when the duration of the exp...
void setMaxDuration(double maxDuration)
set the maximum duration for the experiment.
void setAutoVoltageRange()
set to auto-select the voltage range.
double getMaxCapacity() const
get the value set for the maximum capacity / cumulative charge.
void setApproxMaxVoltage(double approxMaxVoltage)
set maximum voltage expected, for manual voltage range selection.
double getMinSamplingVoltageDifference() const
get the minimum sampling voltage difference for reporting the data.
void setMaxVoltage(double maxVoltage)
set a maximum voltage to stop the experiment.
AisConstantCurrentElement(const AisConstantCurrentElement &)
copy constructor for the AisConstantCurrentElement object.
void setMinVoltage(double minVoltage)
set a minimum voltage to stop the experiment.
double getSamplingInterval() const
get how frequently we are sampling the data.
QStringList getCategory() const override
get a list of applicable categories of the element.
void setMinSamplingVoltageDifference(double minVoltageDifference)
set a minimum sampling voltage difference for reporting the voltage.
double getCurrent() const
get the value set for the current.
double getMinVoltage() const
get the value set minimum for the voltage in volts.
bool isAutoRange() const
tells whether the current range is set to auto-select or not.
void setCurrent(double current)
set the value for the current.
bool isAutoVoltageRange() const
tells whether the voltage range is set to auto-select or not.
AisConstantCurrentElement(double current, double samplingInterval, double duration)
the constant current element constructor.