Squidstat API User Manual
|
This experiment simulates a constant power, charge or discharge".
More...
#include <AisConstantPowerElement.h>
Inherits AisAbstractElement.
Public Member Functions | |
AisConstantPowerElement (double power, double duration, double samplingInterval) | |
the constant power element constructor More... | |
AisConstantPowerElement (bool isCharge, double power, double duration, double samplingInterval) | |
the constant power element constructor that supports the isCharge parameter More... | |
AisConstantPowerElement (const AisConstantPowerElement &) | |
copy constructor for the AisConstantPowerElement object. | |
AisConstantPowerElement & | operator= (const AisConstantPowerElement &) |
overload equal to operator for the AisConstantPowerElement object. | |
QString | getName () const override |
get the name of the element. More... | |
QStringList | getCategory () const override |
get a list of applicable categories of the element. More... | |
bool | isCharge () const |
tells whether the experiment is set to simulate charge or discharge. More... | |
void | setCharge (bool isCharge) |
set whether the experiment is to simulate charge or discharge. More... | |
double | getPower () const |
get the value set for the power. More... | |
void | setPower (double power) |
set the value for the power. More... | |
double | getSamplingInterval () const |
get how frequently we are sampling the data. More... | |
void | setSamplingInterval (double samplingInterval) |
set how frequently we are sampling the data. More... | |
double | getMaxVoltage () const |
get the value set for the maximum voltage. The experiment will end when it reaches this value. More... | |
void | setMaxVoltage (double maxVoltage) |
set a maximum voltage to stop the experiment. More... | |
bool | isMaximumVoltageVsOCP () const |
tells whether the specified maximum voltage is set against the open-circuit voltage or the reference terminal. More... | |
void | setMaximumVoltageVsOCP (bool vsOCP) |
set whether to reference the specified maximum voltage against the open-circuit voltage or the reference terminal. More... | |
double | getMinVoltage () const |
get the minimum value set for the voltage in volts. The experiment will end when it reaches down this value. More... | |
void | setMinVoltage (double minVoltage) |
set a minimum value for the voltage. The experiment will end when it reaches down this value. More... | |
bool | isMinimumVoltageVsOCP () const |
tells whether the specified minimum voltage is set against the open-circuit voltage or the reference terminal. More... | |
void | setMinimumVoltageVsOCP (bool vsOCP) |
set whether to reference the specified minimum voltage against the open-circuit voltage or the reference terminal. More... | |
double | getMaxCurrent () const |
get the value set maximum for the current in amps. More... | |
void | setMaxCurrent (double maxCurrent) |
set a maximum current to stop the experiment. More... | |
double | getMinCurrent () const |
get the value set minimum for the current in amps. More... | |
void | setMinCurrent (double maxCurrent) |
set a minimum current to stop the experiment. More... | |
double | getMaxDuration () const |
get the maximum duration set for the experiment. The experiment will end when the duration of the experiment reaches this value. More... | |
void | setMaxDuration (double maxDuration) |
set the maximum duration for the experiment. More... | |
double | getMaxCapacity () const |
get the value set for the maximum capacity / cumulative charge. More... | |
void | setMaxCapacity (double maxCapacity) |
set the value for the maximum capacity / cumulative charge in Coulomb. More... | |
This experiment simulates a constant power, charge or discharge".
|
explicit |
the constant power element constructor
power | the value set for the power in watts. |
duration | the maximum duration for the experiment in seconds. |
samplingInterval | the data sampling interval value in seconds. |
|
explicit |
the constant power element constructor that supports the isCharge parameter
isCharge | true to set the experiment simulate charge and false to simulate discharge. |
power | the value set for the power in watts. |
duration | the maximum duration for the experiment in seconds. |
samplingInterval | the data sampling interval value in seconds. |
|
override |
get a list of applicable categories of the element.
double AisConstantPowerElement::getMaxCapacity | ( | ) | const |
get the value set for the maximum capacity / cumulative charge.
double AisConstantPowerElement::getMaxCurrent | ( | ) | const |
get the value set maximum for the current in amps.
double AisConstantPowerElement::getMaxDuration | ( | ) | const |
get the maximum duration set for the experiment. The experiment will end when the duration of the experiment reaches this value.
double AisConstantPowerElement::getMaxVoltage | ( | ) | const |
get the value set for the maximum voltage. The experiment will end when it reaches this value.
double AisConstantPowerElement::getMinCurrent | ( | ) | const |
get the value set minimum for the current in amps.
double AisConstantPowerElement::getMinVoltage | ( | ) | const |
get the minimum value set for the voltage in volts. The experiment will end when it reaches down this value.
|
override |
get the name of the element.
double AisConstantPowerElement::getPower | ( | ) | const |
get the value set for the power.
double AisConstantPowerElement::getSamplingInterval | ( | ) | const |
get how frequently we are sampling the data.
bool AisConstantPowerElement::isCharge | ( | ) | const |
tells whether the experiment is set to simulate charge or discharge.
bool AisConstantPowerElement::isMaximumVoltageVsOCP | ( | ) | const |
tells whether the specified maximum voltage is set against the open-circuit voltage or the reference terminal.
bool AisConstantPowerElement::isMinimumVoltageVsOCP | ( | ) | const |
tells whether the specified minimum voltage is set against the open-circuit voltage or the reference terminal.
void AisConstantPowerElement::setCharge | ( | bool | isCharge | ) |
set whether the experiment is to simulate charge or discharge.
isCharge | if the given argument is true, the experiment will simulate charge and discharge if given false. |
void AisConstantPowerElement::setMaxCapacity | ( | double | maxCapacity | ) |
set the value for the maximum capacity / cumulative charge in Coulomb.
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 AisConstantPowerElement::setMaxCurrent | ( | double | maxCurrent | ) |
set a maximum current to stop the experiment.
This is an optional condition. If nothing is set, then the experiment will not stop based on an uper-limit Current value. If a maximum current is set, the experiment will continue to run as long as the measured current is above that value.
maxCurrent | the maximum current value in amps at which the experiment will stop. |
void AisConstantPowerElement::setMaxDuration | ( | double | maxDuration | ) |
set the maximum duration for the experiment.
The experiment will continue to run as long as the passed time is less than that the set duration value.
maxDuration | the maximum duration for the experiment in seconds. |
void AisConstantPowerElement::setMaximumVoltageVsOCP | ( | bool | vsOCP | ) |
set whether to reference the specified maximum voltage against the open-circuit voltage or the reference terminal.
The reference terminal is for you to connect to any reference point you like. Connect it to the working electrode to reference ground.
vsOCP | true to set the specified maximum voltage to reference the open-circuit voltage and false to set against the reference terminal. |
void AisConstantPowerElement::setMaxVoltage | ( | double | maxVoltage | ) |
set a maximum voltage to stop the experiment.
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 AisConstantPowerElement::setMinCurrent | ( | double | maxCurrent | ) |
set a minimum current to stop the experiment.
This is an optional condition. If nothing is set, then the experiment will not stop based on an lower-limit Current value. If a minimum current is set, the experiment will continue to run as long as the measured current is below that value.
maxCurrent | the minimum current value in amps at which the experiment will stop. |
void AisConstantPowerElement::setMinimumVoltageVsOCP | ( | bool | vsOCP | ) |
set whether to reference the specified minimum voltage against the open-circuit voltage or the reference terminal.
The reference terminal is for you to connect to any reference point you like. Connect it to the working electrode to reference ground.
vsOCP | true to set the specified minimum voltage to reference the open-circuit voltage and false to set against the reference terminal. |
void AisConstantPowerElement::setMinVoltage | ( | double | minVoltage | ) |
set a minimum value for the voltage. The experiment will end when it reaches down this value.
minVoltage | the value for the voltage in volts. |
void AisConstantPowerElement::setPower | ( | double | power | ) |
set the value for the power.
power | the value set for the power in watts. |
void AisConstantPowerElement::setSamplingInterval | ( | double | samplingInterval | ) |
set how frequently we are sampling the data.
samplingInterval | the data sampling interval value in seconds. |