AuboStudio SDK 0.6.3

Public 类型 | Public 成员函数 | Private 成员函数 | Private 属性 | 友元 | 所有成员列表
arcs::aubo_scope::SetNode类 参考

`#include <set_node.h>`

类 arcs::aubo_scope::SetNode 继承关系图:
[图例]
arcs::aubo_scope::SetNode 的协作图:
[图例]

## Public 类型
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. 更多...
enum | OutputSelectionType { NO_OUTPUT , UNRESOLVED_OUTPUT , OUTPUT }

## Public 成员函数
| SetNode (SetNode &f)
| SetNode (SetNode &&f)
virtual | ~SetNode ()
ConfigType | getConfigType ()
| This method returns the type of configuration. 更多...
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. 更多...
void | setOutput (IoPtr io)
bool | getBoolValueToSet ()
| Depending on the type of output this is interpreted in different ways. 更多...
void | setBoolValueToSet (bool value)
double | getVoltage ()
void | setVoltage (double voltage)
double | getCurrent ()
void | setCurrent (double curr)
Public 成员函数 继承自 arcs::aubo_scope::ProgramNode
| ProgramNode (ProgramNode &f)
| ProgramNode (ProgramNode &&f)
virtual | ~ProgramNode ()
ProgramNodeContributionPtr | getProgramNodeContribution ()
| 不推荐用户调用 ProgramNodeContribution::generateScript 使用 ScriptWritter::writeChildren 更多...

## Private 成员函数
| SetNode ()

## Private 属性
void * | d_ { nullptr }

## 友元
class | DataSwitch

## 额外继承的成员函数
Protected 成员函数 继承自 arcs::aubo_scope::ProgramNode
| ProgramNode ()

## 详细描述

在文件 set_node.h 第 12 行定义.

## 成员枚举类型说明

## ◆ ConfigType

enum arcs::aubo_scope::SetNode::ConfigType

The configuration type used to determine which type of configuration this instance is.

枚举值
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 {}.
ANALOG_OUTPUT_CURRENT | Analog output configured for electric current or no output has been selected. The config instance can be cast to {}.
ANALOG_OUTPUT_VOLTAGE | Analog output configured for voltage has been selected. The config instance can be cast to {}.
FLOAT_REGISTER_OUTPUT | Register using float type values has been selected. The config instance can be cast to {}.
EXPRESSION_OUTPUT | Expression output has been selected. The config instance can be cast to {}.
SINGLE_DIGITAL_PULSE | Single digital pulse output has been selected. The config instance can be cast to {}.
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.

在文件 set_node.h 第 19 行定义.

## ◆ OutputSelectionType

enum arcs::aubo_scope::SetNode::OutputSelectionType

枚举值
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.

在文件 set_node.h 第 104 行定义.

## 构造及析构函数说明

## ◆ SetNode() [1/3]

arcs::aubo_scope::SetNode::SetNode | ( | SetNode & | f | ) |

## ◆ SetNode() [2/3]

arcs::aubo_scope::SetNode::SetNode | ( | SetNode && | f | ) |

## ◆ ~SetNode()

virtual arcs::aubo_scope::SetNode::~SetNode | ( |  | ) |
| virtual

## ◆ SetNode() [3/3]

arcs::aubo_scope::SetNode::SetNode | ( |  | ) |
| private

## 成员函数说明

## ◆ getAnalogOutput()

double arcs::aubo_scope::SetNode::getAnalogOutput | ( |  | ) |

返回
  the analog output value.

## ◆ getBoolValueToSet()

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.

返回
  the output value.

## ◆ getConfigType()

ConfigType arcs::aubo_scope::SetNode::getConfigType | ( |  | ) |

This method returns the type of configuration.

Cast this instance appropriately to have access to specific getters.

返回
  the type of this config.

## ◆ getCurrent()

double arcs::aubo_scope::SetNode::getCurrent | ( |  | ) |

返回
  the electric current value/level to be applied to the output.

## ◆ getExpression()

ExpressionPtr arcs::aubo_scope::SetNode::getExpression | ( |  | ) |

返回
  the expression whose evaluation will be applied to the output.

## ◆ getFloatValueToSet()

float arcs::aubo_scope::SetNode::getFloatValueToSet | ( |  | ) |

返回
  the float value to be applied to the float register output.

## ◆ getOutput()

IoPtr arcs::aubo_scope::SetNode::getOutput | ( |  | ) |

The output selected can be an analog output, a digital output, a MODBUS output or a register output.

返回
  the output to which the result of the evaluation of the expression will be applied.

## ◆ getOutputSelectionType()

OutputSelectionType arcs::aubo_scope::SetNode::getOutputSelectionType | ( |  | ) |

## ◆ getPulseTime()

double arcs::aubo_scope::SetNode::getPulseTime | ( |  | ) |

返回
  the time for the length of the pulse.

## ◆ getVoltage()

double arcs::aubo_scope::SetNode::getVoltage | ( |  | ) |

返回
  the voltage value/level to be applied to the output

## ◆ setAnalogOutput()

void arcs::aubo_scope::SetNode::setAnalogOutput | ( | double | value | ) |

## ◆ setBoolValueToSet()

void arcs::aubo_scope::SetNode::setBoolValueToSet | ( | bool | value | ) |

## ◆ setConfigType()

void arcs::aubo_scope::SetNode::setConfigType | ( | ConfigType | type | ) |

## ◆ setCurrent()

void arcs::aubo_scope::SetNode::setCurrent | ( | double | curr | ) |

## ◆ setExpression()

void arcs::aubo_scope::SetNode::setExpression | ( | ExpressionPtr | expression | ) |

## ◆ setFloatValueToSet()

void arcs::aubo_scope::SetNode::setFloatValueToSet | ( | float | value | ) |

## ◆ setOutput()

void arcs::aubo_scope::SetNode::setOutput | ( | IoPtr | io | ) |

## ◆ setPulseTime()

void arcs::aubo_scope::SetNode::setPulseTime | ( | double | time | ) |

## ◆ setVoltage()

void arcs::aubo_scope::SetNode::setVoltage | ( | double | voltage | ) |

## 友元及相关函数文档

## ◆ DataSwitch

friend class DataSwitch
| friend

在文件 set_node.h 第 206 行定义.

## 类成员变量说明

## ◆ d_

void* arcs::aubo_scope::SetNode::d_ { nullptr }
| private

在文件 set_node.h 第 208 行定义.

该类的文档由以下文件生成:

- include/aubo_caps/domain/program/nodes/builtin/set_node.h