![]() |
an experiment that simulates a constant current flow with more advance options for stopping the experiment.
More...
#include <AisConstantCurrentElement.h>
#include <AisConstantCurrentElement.h>
Public Member Functions | |
AisConstantCurrentElement (double current, double samplingInterval, double duration) | |
the constant current element constructor. | |
AisConstantCurrentElement (const AisConstantCurrentElement &) | |
copy constructor for the AisConstantCurrentElement object. | |
AisConstantCurrentElement & | operator= (const AisConstantCurrentElement &) |
overload equal to operator for the AisConstantCurrentElement object. | |
QString | getName () const override |
get the name of the element. | |
QStringList | getCategory () const override |
get a list of applicable categories of the element. | |
double | getCurrent () const |
get the value set for the current. | |
void | setCurrent (double current) |
set the value for the current. | |
double | getSamplingInterval () const |
get how frequently we are sampling the data. | |
void | setSamplingInterval (double samplingInterval) |
set how frequently we are sampling the data. | |
double | getMinSamplingVoltageDifference () const |
get the minimum sampling voltage difference for reporting the data. | |
void | setMinSamplingVoltageDifference (double minVoltageDifference) |
set a minimum sampling voltage difference for reporting the voltage. | |
double | getMaxVoltage () const |
get the value set for the maximum voltage. The experiment will end when it reaches this value. | |
void | setMaxVoltage (double maxVoltage) |
set a maximum voltage to stop the experiment. | |
double | getMinVoltage () const |
get the value set minimum for the voltage in volts. | |
void | setMinVoltage (double minVoltage) |
set a minimum voltage to stop the experiment. | |
double | getMaxDuration () const |
get the maximum duration set for the experiment. The experiment will end when the duration of the experiment reaches this value. | |
void | setMaxDuration (double maxDuration) |
set the maximum duration for the experiment. | |
double | getMaxCapacity () const |
get the value set for the maximum capacity / cumulative charge. | |
void | setMaxCapacity (double maxCapacity) |
set the value for the maximum capacity / cumulative charge in Coulomb. | |
bool | isAutoRange () const |
tells whether the current range is set to auto-select or not. | |
void | setAutoRange () |
set to auto-select the current range. | |
double | getApproxMaxCurrent () const |
get the value set for the expected maximum current. | |
void | setApproxMaxCurrent (double approxMaxCurrent) |
set maximum current expected, for manual current range selection. | |
bool | isAutoVoltageRange () const |
tells whether the voltage range is set to auto-select or not. | |
void | setAutoVoltageRange () |
set to auto-select the voltage range. | |
double | getApproxMaxVoltage () const |
get the value set for the expected maximum voltage. | |
void | setApproxMaxVoltage (double approxMaxVoltage) |
set maximum voltage expected, for manual voltage range selection. | |
|
explicit |
current | the value for the current in Amps. |
samplingInterval | the data sampling interval value in seconds. |
duration | the maximum duration for the experiment in seconds. |
double AisConstantCurrentElement::getApproxMaxCurrent | ( | ) | const |
double AisConstantCurrentElement::getApproxMaxVoltage | ( | ) | const |
|
override |
double AisConstantCurrentElement::getCurrent | ( | ) | const |
double AisConstantCurrentElement::getMaxCapacity | ( | ) | const |
double AisConstantCurrentElement::getMaxDuration | ( | ) | const |
double AisConstantCurrentElement::getMaxVoltage | ( | ) | const |
double AisConstantCurrentElement::getMinSamplingVoltageDifference | ( | ) | const |
get the value set for the minimum sampling voltage difference.
double AisConstantCurrentElement::getMinVoltage | ( | ) | const |
|
override |
double AisConstantCurrentElement::getSamplingInterval | ( | ) | const |
bool AisConstantCurrentElement::isAutoRange | ( | ) | const |
bool AisConstantCurrentElement::isAutoVoltageRange | ( | ) | const |
void AisConstantCurrentElement::setApproxMaxCurrent | ( | double | approxMaxCurrent | ) |
This is an optional parameter. If nothing is set, the device will auto-select the current range.
approxMaxCurrent | the value for the maximum current expected in Amps. |
void AisConstantCurrentElement::setApproxMaxVoltage | ( | double | approxMaxVoltage | ) |
This is an optional parameter. If nothing is set, the device will auto-select the voltage range.
approxMaxVoltage | the value for the maximum current expected in V. |
void AisConstantCurrentElement::setAutoRange | ( | ) |
This option is set by default. There is no need to call this function to auto-select if the range was not manually set.
void AisConstantCurrentElement::setAutoVoltageRange | ( | ) |
This option is set by default. There is no need to call this function to auto-select if the range was not manually set.
void AisConstantCurrentElement::setCurrent | ( | double | current | ) |
current | the value for the current in Amps. |
void AisConstantCurrentElement::setMaxCapacity | ( | double | maxCapacity | ) |
This is an optional condition. If nothing is set, then the experiment will not stop based on an upper-limit cumulative charge value. If a maximum capacity is set, the experiment will continue to run as long as the cumulative charge is below that value.
maxCapacity | the value to set for the cell maximum capacity. |
void AisConstantCurrentElement::setMaxDuration | ( | double | maxDuration | ) |
The experiment will continue to run as long as the time passed is less than the value to set.
maxDuration | the maximum duration for the experiment in seconds. |
void AisConstantCurrentElement::setMaxVoltage | ( | double | maxVoltage | ) |
This is an optional condition. If nothing is set, then the experiment will not stop based on an upper-limit voltage value. If a maximum voltage is set, the experiment will continue to run as long as the measured voltage is below that value.
maxVoltage | the maximum voltage value in volts at which the experiment will stop. |
void AisConstantCurrentElement::setMinSamplingVoltageDifference | ( | double | minVoltageDifference | ) |
This is an optional condition. If nothing is set, then the experiment will report the data at time sampling interval. When this is set, then the voltage is reported when there is a voltage difference of at least the given minimum sampling voltage difference. So, when one voltage data point is reported (at the minimum possible time sampling interval), the next data point is not reported unless the difference between the two voltage data points exceeds this given minimum sampling voltage difference value.
minVoltageDifference | the minimum sampling voltage difference value in volts. |
void AisConstantCurrentElement::setMinVoltage | ( | double | minVoltage | ) |
This is an optional condition. If nothing is set, then the experiment will not stop based on an lower-limit voltage value. If a maximum voltage is set, the experiment will continue to run as long as the measured voltage is above that value.
minVoltage | the minimum voltage value in volts at which the experiment will stop. |
void AisConstantCurrentElement::setSamplingInterval | ( | double | samplingInterval | ) |
samplingInterval | the data sampling interval value in seconds. |