AuboCaps
0.6.0
|
#include <set_node.h>
Public Types | |
enum | ConfigType { NO_TYPE, NO_ACTION, DIGITAL_OUTPUT, ANALOG_OUTPUT_CURRENT, ANALOG_OUTPUT_VOLTAGE, FLOAT_REGISTER_OUTPUT, EXPRESSION_OUTPUT, SINGLE_DIGITAL_PULSE, INCREMENT_VARIABLE } |
The configuration type used to determine which type of configuration this instance is. More... | |
enum | OutputSelectionType { NO_OUTPUT, UNRESOLVED_OUTPUT, OUTPUT } |
Public Member Functions | |
SetNode (SetNode &f) | |
SetNode (SetNode &&f) | |
virtual | ~SetNode () |
ConfigType | getConfigType () |
This method returns the type of configuration. More... | |
void | setConfigType (ConfigType type) |
double | getPulseTime () |
void | setPulseTime (double time) |
float | getFloatValueToSet () |
void | setFloatValueToSet (float value) |
double | getAnalogOutput () |
void | setAnalogOutput (double value) |
OutputSelectionType | getOutputSelectionType () |
ExpressionPtr | getExpression () |
void | setExpression (ExpressionPtr expression) |
IoPtr | getOutput () |
The output selected can be an analog output, a digital output, a MODBUS output or a register output. More... | |
void | setOutput (IoPtr io) |
bool | getBoolValueToSet () |
Depending on the type of output this is interpreted in different ways. More... | |
void | setBoolValueToSet (bool value) |
double | getVoltage () |
void | setVoltage (double voltage) |
double | getCurrent () |
void | setCurrent (double curr) |
Public Member Functions inherited from arcs::aubo_scope::ProgramNode | |
ProgramNode (ProgramNode &f) | |
ProgramNode (ProgramNode &&f) | |
virtual | ~ProgramNode () |
ProgramNodeContributionPtr | getProgramNodeContribution () |
不推荐用户调用 ProgramNodeContribution::generateScript 使用 ScriptWritter::writeChildren More... | |
Private Member Functions | |
SetNode () | |
Private Attributes | |
void * | d_ { nullptr } |
Friends | |
class | DataSwitch |
Additional Inherited Members | |
Protected Member Functions inherited from arcs::aubo_scope::ProgramNode | |
ProgramNode () | |
Definition at line 12 of file set_node.h.
The configuration type used to determine which type of configuration this instance is.
Enumerator | |
---|---|
NO_TYPE |
No selection has been made. This type has no further information. |
NO_ACTION |
No action has been selected. This type has no further information. |
DIGITAL_OUTPUT |
Digital output has been selected. The config instance can be cast to DigitalOutputSetNodeConfig. |
ANALOG_OUTPUT_CURRENT |
Analog output configured for electric current or no output has been selected. The config instance can be cast to AnalogOutputCurrentSetNodeConfig. |
ANALOG_OUTPUT_VOLTAGE |
Analog output configured for voltage has been selected. The config instance can be cast to AnalogOutputVoltageSetNodeConfig. |
FLOAT_REGISTER_OUTPUT |
Register using float type values has been selected. The config instance can be cast to FloatRegisterOutputSetNodeConfig. |
EXPRESSION_OUTPUT |
Expression output has been selected. The config instance can be cast to ExpressionOutputSetNodeConfig. |
SINGLE_DIGITAL_PULSE |
Single digital pulse output has been selected. The config instance can be cast to SingleDigitalPulseSetNodeConfig. |
INCREMENT_VARIABLE |
Increment variable has been selected. This type has no further information. Setting this type of config will be ignored and will have no effect on the node. |
Definition at line 19 of file set_node.h.
Enumerator | |
---|---|
NO_OUTPUT |
No output is selected. |
UNRESOLVED_OUTPUT |
The selected output is no longer available (e.g. because the end user has removed the output in the Installation or the needed Installation is not currently loaded). |
OUTPUT |
Output is selected. The Selection instance can be cast to ExpressionOutput. |
Definition at line 104 of file set_node.h.
arcs::aubo_scope::SetNode::SetNode | ( | SetNode & | f | ) |
arcs::aubo_scope::SetNode::SetNode | ( | SetNode && | f | ) |
|
virtual |
|
private |
double arcs::aubo_scope::SetNode::getAnalogOutput | ( | ) |
bool arcs::aubo_scope::SetNode::getBoolValueToSet | ( | ) |
Depending on the type of output this is interpreted in different ways.
For digital output and MODBUS output, true
means the output will be set to HIGH, false means the output will be set to LOW. For boolean register the value is interpreted literally.
ConfigType arcs::aubo_scope::SetNode::getConfigType | ( | ) |
This method returns the type of configuration.
Cast this instance appropriately to have access to specific getters.
double arcs::aubo_scope::SetNode::getCurrent | ( | ) |
ExpressionPtr arcs::aubo_scope::SetNode::getExpression | ( | ) |
float arcs::aubo_scope::SetNode::getFloatValueToSet | ( | ) |
IoPtr arcs::aubo_scope::SetNode::getOutput | ( | ) |
The output selected can be an analog output, a digital output, a MODBUS output or a register output.
OutputSelectionType arcs::aubo_scope::SetNode::getOutputSelectionType | ( | ) |
double arcs::aubo_scope::SetNode::getPulseTime | ( | ) |
double arcs::aubo_scope::SetNode::getVoltage | ( | ) |
void arcs::aubo_scope::SetNode::setAnalogOutput | ( | double | value | ) |
void arcs::aubo_scope::SetNode::setBoolValueToSet | ( | bool | value | ) |
void arcs::aubo_scope::SetNode::setConfigType | ( | ConfigType | type | ) |
void arcs::aubo_scope::SetNode::setCurrent | ( | double | curr | ) |
void arcs::aubo_scope::SetNode::setExpression | ( | ExpressionPtr | expression | ) |
void arcs::aubo_scope::SetNode::setFloatValueToSet | ( | float | value | ) |
void arcs::aubo_scope::SetNode::setOutput | ( | IoPtr | io | ) |
void arcs::aubo_scope::SetNode::setPulseTime | ( | double | time | ) |
void arcs::aubo_scope::SetNode::setVoltage | ( | double | voltage | ) |
|
friend |
Definition at line 206 of file set_node.h.
|
private |
Definition at line 208 of file set_node.h.