Loading...
Searching...
No Matches
AisConstantResistanceElement.h
1#pragma once
2
3#include "AisAbstractElement.h"
4#include "AisSquidstatGlobal.h"
5#include <QString>
6
7class ConstantResistanceElement;
8
18class SQUIDSTATLIBRARY_EXPORT AisConstantResistanceElement final : public AisAbstractElement {
19public:
27 double resistance,
28 double duration,
29 double samplingInterval);
38
40
45 QString getName() const override;
46
51 QStringList getCategory() const override;
52
57 double getResistance() const;
58
63 void setResistance(double resistance);
64
69 double getSamplingInterval() const;
70
75 void setSamplingInterval(double samplingInterval);
76
82 double getMinVoltage() const;
83
92 void setMinVoltage(double minVoltage);
93
100
107 void setMinimumVoltageVsOCP(bool vsOCP);
108
114 double getMaxVoltage() const;
115
124 void setMaxVoltage(double maxVoltage);
125
132
139 void setMaximumVoltageVsOCP(bool vsOCP);
140
146 double getMaxCurrent() const;
147
156 void setMaxCurrent(double maxCurrent);
157
163 double getMinCurrent() const;
164
173 void setMinCurrent(double maxCurrent);
174
180 double getMaxDuration() const;
181
188 void setMaxDuration(double maxDuration);
189
195 double getMaxCapacity() const;
196
205 void setMaxCapacity(double maxCapacity);
206
207private:
208 std::shared_ptr<ConstantResistanceElement> m_dataDerived;
209};
This element/experiment simulates a constant resistance load.
Definition AisConstantResistanceElement.h:18
double getMaxDuration() const
get the maximum duration set for the experiment. The experiment will end when the duration of the exp...
void setMinCurrent(double maxCurrent)
set a minimum current to stop the experiment.
double getMinCurrent() const
get the value set minimum for the current in amps.
bool isMinimumVoltageVsOCP() const
tells whether the specified minimum voltage is set against the open-circuit voltage or the reference ...
double getMaxVoltage() const
get the value set maximum for the voltage in volts.
bool isMaximumVoltageVsOCP() const
tells whether the specified maximum voltage is set against the open-circuit voltage or the reference ...
AisConstantResistanceElement(double resistance, double duration, double samplingInterval)
the constant resistance element constructor.
void setMaxCapacity(double maxCapacity)
set the value for the maximum capacity / cumulative charge in Coulomb.
void setMaximumVoltageVsOCP(bool vsOCP)
set whether to reference the specified maximum voltage against the open-circuit voltage or the refere...
double getMaxCapacity() const
get the value set for the maximum capacity / cumulative charge.
QStringList getCategory() const override
get a list of applicable categories of the element.
AisConstantResistanceElement(const AisConstantResistanceElement &)
copy constructor for the AisConstantResistanceElement object.
double getMaxCurrent() const
get the value set maximum for the current in amps.
double getSamplingInterval() const
get how frequently we are sampling the data.
void setMinimumVoltageVsOCP(bool vsOCP)
set whether to reference the specified minimum voltage against the open-circuit voltage or the refere...
double getMinVoltage() const
get the value set minimum for the voltage in volts.
void setMaxCurrent(double maxCurrent)
set a maximum current to stop the experiment.
void setMaxDuration(double maxDuration)
set the maximum duration for the experiment.
void setSamplingInterval(double samplingInterval)
set how frequently we are sampling the data.
void setMaxVoltage(double maxVoltage)
set a maximum voltage to stop the experiment.
double getResistance() const
get the value set for the resistance as a load.
QString getName() const override
get the name of the element.
AisConstantResistanceElement & operator=(const AisConstantResistanceElement &)
overload equal to operator for the AisConstantResistanceElement object.
void setResistance(double resistance)
set the value for the resistance as a load
void setMinVoltage(double minVoltage)
set a minimum voltage to stop the experiment.