OutputSpinnakerNode.
More...
#include <output_node.h>
|
| OutputSpinnakerNode (const std::string &id, const std::string &label, bool publishFromCache=false, unsigned int computePeriod=1) |
| Constructor. More...
|
|
std::string | typeStr () const override |
| Returns the node 'type' as a string. More...
|
|
| ~OutputSpinnakerNode () |
|
void | configure () override |
| Configures the node making it ready to execute 'compute'. More...
|
|
| OutputNode (const std::string &id, OutputNodePolicies::PublishFormatPolicy publishFormatPolicy=OutputNodePolicies::PublishFormatPolicy::SERIES, bool publishFromCache=false, int maxPortConnections=0, unsigned int computePeriod=1) |
| Constructor. More...
|
|
InputPort< T_IN, nlohmann::json > * | getOrRegisterInput (const std::string &id) |
| Gets or register input port to this node and returns a pointer to it. More...
|
|
unsigned int | getComputePeriod () |
|
void | setComputePeriod (unsigned int computePeriod) |
|
bool | publishFromCache () |
|
virtual bool | doCompute () const override final |
| Tells if this node should be executed in this graph execution cycle, used in some graph execution modes. More...
|
|
| ComputationalNode ()=delete |
|
virtual | ~ComputationalNode ()=default |
|
| ComputationalNode (std::string id, NodeType type) |
| Constructor. More...
|
|
const std::string & | id () const |
| Returns the node 'id'. More...
|
|
NodeType | type () const |
| Returns the node 'type'. More...
|
|
void | setVisited (bool visited) |
| Sets a value for the node 'visited' property, used for graph traversing. More...
|
|
bool | isVisited () const |
| Returns true if the node has been marked as visited, false otherwise. More...
|
|
void | setDoCompute (bool doCompute) |
| Sets a value for the node 'doCompute' property, used in some graph execution modes. More...
|
|
virtual bool | doCompute () const |
| Tells if this node should be executed in this graph execution cycle, used in some graph execution modes. More...
|
|
|
void | sendSingleMsg (const std::string &, const nlohmann::json *data) override |
| Sends out a single msg, to be implemented by derived classes. More...
|
|
void | sendBatchMsg (const std::string &, const std::vector< const nlohmann::json * > &) override |
| Sends out a vector of msg as a single batch, to be implemented by derived classes. More...
|
|
void | configure () override |
| Configures the node making it ready to execute 'compute'. More...
|
|
virtual void | compute () override final |
| Requests the node to execute its computation. More...
|
|
void | graphCycleStartCB () override final |
| Function called by the Computational Graph at the beginning of a new execution cycle. More...
|
|
void | storeMsg (const std::string &id, const nlohmann::json *data) |
| Stores a new msg in _storedMsgs['id']. More...
|
|
void | sendMsgs (const std::string &id) |
| Sends all msgs stored in _storedMsgs['id'] and clears the storage. More...
|
|
virtual void | graphLoadedCB () |
| Function called by the Computational Graph to nodes that the graph has been completely loaded. More...
|
|
◆ OutputSpinnakerNode()
OutputSpinnakerNode::OutputSpinnakerNode |
( |
const std::string & |
id, |
|
|
const std::string & |
label, |
|
|
bool |
publishFromCache = false , |
|
|
unsigned int |
computePeriod = 1 |
|
) |
| |
|
inline |
◆ ~OutputSpinnakerNode()
OutputSpinnakerNode::~OutputSpinnakerNode |
( |
| ) |
|
|
inline |
◆ configure()
void OutputSpinnakerNode::configure |
( |
| ) |
|
|
inlineoverridevirtual |
Configures the node making it ready to execute 'compute'.
Implements ComputationalNode.
◆ sendBatchMsg()
void OutputSpinnakerNode::sendBatchMsg |
( |
const std::string & |
id, |
|
|
const std::vector< const nlohmann::json * > & |
data |
|
) |
| |
|
inlineoverrideprotectedvirtual |
◆ sendSingleMsg()
void OutputSpinnakerNode::sendSingleMsg |
( |
const std::string & |
id, |
|
|
const nlohmann::json * |
data |
|
) |
| |
|
inlineoverrideprotectedvirtual |
◆ typeStr()
std::string OutputSpinnakerNode::typeStr |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: