Public Member Functions | |
virtual dwStatus | addToErrorSignal (uint32_t error, dwTime_t timestamp=0L)=0 |
A function the allows user to add an error to the error signal list. More... | |
virtual dwStatus | addToHealthSignal (uint32_t error, dwTime_t timestamp=0L)=0 |
A function the allows user to add an error to the health signal list. More... | |
virtual dwStatus | clearErrorSignal ()=0 |
Clear the error signal for this node. More... | |
virtual dwStatus | clearHealthSignal ()=0 |
Clear the health signal for this node. More... | |
virtual dwStatus | collectErrorSignals (dwGraphErrorSignal *&errorSignal, bool updateFromModule=true)=0 |
Collect error signals from node and module, combine and return the pointer to the error signal for this node. If combination of module and node signals exceeds max amount, will return up to max amount, node first, and DW_BUFFER_FULL. More... | |
virtual dwStatus | collectHealthSignals (dwGraphHealthSignal *&healthSignal, bool updateFromModule=false)=0 |
Collect health signals from node and module, combine and return the pointer to the health signal for this node. If combination of module and node signals exceeds max amount, will return up to max amount, node first, and DW_BUFFER_FULL. More... | |
virtual dwStatus | getInputChannel (const size_t portID, ChannelObject *&channel) const =0 |
Gets the input channel associated with the input port. More... | |
virtual dwStatus | getInputPort (const size_t portID, dw::framework::PortBase *&port) const =0 |
Gets the input port associated with the port id. More... | |
virtual dwStatus | getModuleErrorSignal (dwErrorSignal &errorSignal)=0 |
Get a copy of the error signals from the module that is a member of this node. More... | |
virtual dwStatus | getModuleHealthSignal (dwHealthSignal &healthSignal)=0 |
Return a copy of health signals from module that is a member of node. More... | |
virtual dwStatus | getName (const char **name)=0 |
Get the name of the node. More... | |
virtual dwStatus | getNodeErrorSignal (dwGraphErrorSignal &errorSignal)=0 |
Get a copy of the error signals for the node. More... | |
virtual dwStatus | getNodeHealthSignal (dwGraphHealthSignal &healthSignal)=0 |
Return a copy of graph health signals for the node. More... | |
virtual dwStatus | getOutputChannel (const size_t portID, ChannelObject *&channel) const =0 |
Gets the output channel associated with the output port. More... | |
virtual dwStatus | getOutputPort (const size_t portID, dw::framework::PortBase *&port) const =0 |
Gets the output port associated with the port id. More... | |
virtual dwStatus | getPass (Pass **pass, size_t index)=0 |
Get a const pointer to the pass at a specific index. More... | |
virtual size_t | getPassCount () const noexcept=0 |
Get number of passes in the node. More... | |
virtual dwStatus | getPasses (VectorFixed< Pass * > &passList)=0 |
Get all the passes in the node. More... | |
virtual dwStatus | reset ()=0 |
Resets the state of the node. More... | |
virtual void | resetPorts ()=0 |
Resets all the ports in the node. More... | |
virtual dwStatus | run ()=0 |
Runs all the passes in the node. More... | |
virtual dwStatus | runPass (size_t passIndex)=0 |
Run one pass by index as defined by the pass descriptors. More... | |
virtual dwStatus | setInputChannel (ChannelObject *channel, size_t portID)=0 |
Sets an input channel for this node with an accompanying port. More... | |
virtual dwStatus | setIterationCount (uint32_t iterationCount)=0 |
Sets the node's iteration count. More... | |
virtual dwStatus | setName (const char *name)=0 |
Set the name of the node. More... | |
virtual dwStatus | setNodePeriod (uint32_t period)=0 |
Set the node's period. More... | |
virtual dwStatus | setOutputChannel (ChannelObject *channel, size_t portID)=0 |
Sets an output channel for this node with an accompanying port. More... | |
virtual dwStatus | setState (const char *state)=0 |
Set the current state in node. Node implementation of this API need to be thread-safe. More... | |
virtual dwStatus | updateCurrentErrorSignal (dwGraphErrorSignal &signal)=0 |
A function that allows user override to update error signal It is automatically called by dwFramework when getErrorSignal is called and when pass returns non-success return code. More... | |
virtual dwStatus | updateCurrentHealthSignal (dwGraphHealthSignal &signal)=0 |
A function that allows user override to update health signal It is automatically called by dwFramework during teardown and when pass returns non-success return code. More... | |
virtual dwStatus | validate ()=0 |
Checks that all mandatory ports are bound. The implementation should validate that all the ports are bound to the appropriate channels (any required ports, that is). For example, a camera node may have processed output and raw output ports, but only one is required to be bound. More... | |
virtual | ~Node ()=default |
Static Public Attributes | |
static constexpr const size_t | MAX_NAME_LEN {128U} |
|
virtualdefault |
|
pure virtual |
A function the allows user to add an error to the error signal list.
[in] | error | error value to add. |
[in] | timestamp | timestamp when error is reported. return DW_SUCCESS, DW_BUFFER_FULL |
Implemented in dw::framework::SimpleNode, and dw::framework::ExceptionSafeProcessNode.
|
pure virtual |
A function the allows user to add an error to the health signal list.
[in] | error | error value to add. |
[in] | timestamp | timestamp when error is reported. return DW_SUCCESS, DW_BUFFER_FULL |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Clear the error signal for this node.
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Clear the health signal for this node.
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Collect error signals from node and module, combine and return the pointer to the error signal for this node. If combination of module and node signals exceeds max amount, will return up to max amount, node first, and DW_BUFFER_FULL.
[out] | errorSignal | The error signal. |
[in] | updateFromModule | fetch from module and update node errors with module errors if true. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Collect health signals from node and module, combine and return the pointer to the health signal for this node. If combination of module and node signals exceeds max amount, will return up to max amount, node first, and DW_BUFFER_FULL.
[out] | healthSignal | The health signal. |
[in] | updateFromModule | fetch from module if set to true |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Gets the input channel associated with the input port.
[in] | portID | The port to get the channel from. |
[out] | channel | The channel associated to the portID. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Gets the input port associated with the port id.
[in] | portID | The port id associated with the input port. |
[out] | port | The port associated with the port id. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Get a copy of the error signals from the module that is a member of this node.
[out] | errorSignal | The error signal. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Return a copy of health signals from module that is a member of node.
[out] | healthSignal | The health signal. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Get the name of the node.
name | The output name. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Get a copy of the error signals for the node.
[out] | errorSignal | The error signal. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Return a copy of graph health signals for the node.
[out] | healthSignal | The health signal. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Gets the output channel associated with the output port.
[in] | portID | The port to get the channel from. |
[out] | channel | The channel associated to the portID. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Gets the output port associated with the port id.
[in] | portID | The port id associated with the output port. |
[out] | port | The port associated with the port id. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Get a const pointer to the pass at a specific index.
[out] | pass | A const pointer to the pass |
[in] | index | The index of the pass to get |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtualnoexcept |
Get number of passes in the node.
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Get all the passes in the node.
passList | The output list to populate. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Resets the state of the node.
Implemented in dw::framework::ExceptionSafeProcessNode, dw::framework::SimpleNode, and dw::framework::SimpleNodeT< T >.
|
pure virtual |
Resets all the ports in the node.
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Runs all the passes in the node.
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Run one pass by index as defined by the pass descriptors.
passIndex | The index of the pass to run. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Sets an input channel for this node with an accompanying port.
channel | The channel to bind to the portID. |
portID | The port to bind the channel with. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Sets the node's iteration count.
iterationCount | The current iteration count |
Implemented in dw::framework::SimpleNode, and dw::framework::ExceptionSafeProcessNode.
|
pure virtual |
Set the name of the node.
name | The name of the node. |
Implemented in dw::framework::SimpleNode, and dw::framework::ExceptionSafeProcessNode.
|
pure virtual |
Set the node's period.
period | Node's execution period in microseconds |
Implemented in dw::framework::SimpleNode, and dw::framework::ExceptionSafeProcessNode.
|
pure virtual |
Sets an output channel for this node with an accompanying port.
channel | The channel to bind to the portID. |
portID | The port to bind the channel with. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Set the current state in node. Node implementation of this API need to be thread-safe.
state | The name of the new state which is about to start. The pointer is valid only for the runtime of the function and data should be stored with a deep copy. |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
A function that allows user override to update error signal It is automatically called by dwFramework when getErrorSignal is called and when pass returns non-success return code.
[in,out] | signal | that the node owner modifies to store current health. It is pre-filled with the latest module health signal |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
A function that allows user override to update health signal It is automatically called by dwFramework during teardown and when pass returns non-success return code.
[in,out] | signal | that the node owner modifies to store current health. It is pre-filled with the latest module health signal |
Implemented in dw::framework::ExceptionSafeProcessNode, and dw::framework::SimpleNode.
|
pure virtual |
Checks that all mandatory ports are bound. The implementation should validate that all the ports are bound to the appropriate channels (any required ports, that is). For example, a camera node may have processed output and raw output ports, but only one is required to be bound.
Implemented in dw::framework::ExceptionSafeProcessNode, dw::framework::SimpleNode, and dw::framework::SimpleNodeT< T >.
|
staticconstexpr |