Write out WarpTwin Python file from node information.
More...
#include <WarpTwinPyConfigWriter.h>
Write out WarpTwin Python file from node information.
◆ WarpTwinPyConfigWriter()
| warptwin::WarpTwinPyConfigWriter::WarpTwinPyConfigWriter |
( |
| ) |
|
|
inline |
◆ ~WarpTwinPyConfigWriter()
| virtual warptwin::WarpTwinPyConfigWriter::~WarpTwinPyConfigWriter |
( |
| ) |
|
|
inlinevirtual |
◆ _decomposeNodeInformation()
| void warptwin::WarpTwinPyConfigWriter::_decomposeNodeInformation |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ _getConnectionByUid()
| Connection * warptwin::WarpTwinPyConfigWriter::_getConnectionByUid |
( |
int | uid | ) |
|
|
protected |
Get pointer to connection by uid.
- Parameters
-
- Returns
- Pointer to connection associated with uid. Nullptr if not found
◆ _getConnectionsByName()
| std::vector< Connection * > warptwin::WarpTwinPyConfigWriter::_getConnectionsByName |
( |
ImNode * | node, |
|
|
const std::string & | name ) |
|
protected |
Return all connections matching set criteria in a node.
- Parameters
-
| node | The node to search |
| name | The name to search for |
- Returns
- A vector of all connections matching the criteria
◆ _getConnectionsByType()
| std::vector< Connection * > warptwin::WarpTwinPyConfigWriter::_getConnectionsByType |
( |
ImNode * | node, |
|
|
int | type ) |
|
protected |
Return all connections matching set criteria in a node.
- Parameters
-
| type | The connection type to search for |
| name | The name to search for |
- Returns
- A vector of all connections matching the criteria
◆ _getNodeByUid()
| ImNode * warptwin::WarpTwinPyConfigWriter::_getNodeByUid |
( |
int | uid | ) |
|
|
protected |
Get pointer to a node by uid.
- Parameters
-
- Returns
- Pointer to node associated with uid. Nullptr if not found
◆ _getPythonScriptPIDs()
| std::vector< std::string > warptwin::WarpTwinPyConfigWriter::_getPythonScriptPIDs |
( |
| ) |
|
|
protected |
Retrieves the list of PIDs generated by running the Python file.
- Returns
- Vector of PIDs
◆ _getSignalName()
| std::string warptwin::WarpTwinPyConfigWriter::_getSignalName |
( |
Connection * | signal | ) |
|
|
protected |
Get the full warptwin name of a signal from Connection object.
- Parameters
-
| signal | The signal to resolve name of |
- Returns
- String with signal name
◆ _getStreamlitPIDs()
| std::vector< std::string > warptwin::WarpTwinPyConfigWriter::_getStreamlitPIDs |
( |
| ) |
|
|
protected |
Retrieves the list of PIDs generated by running the Streamlit app.
- Returns
- Vector of PIDs
◆ _killStreamlitPIDs()
| void warptwin::WarpTwinPyConfigWriter::_killStreamlitPIDs |
( |
| ) |
|
|
protected |
Kill the PIDs generated by running the Streamlit app.
◆ _runPythonSim()
| int warptwin::WarpTwinPyConfigWriter::_runPythonSim |
( |
const std::string & | cmd | ) |
|
|
protected |
Function wrapper of system() call for async purposes.
- Parameters
-
| cmd | Command to run python script |
- Returns
- Result of python script execution
◆ _setNodeConnectionSequence()
| void warptwin::WarpTwinPyConfigWriter::_setNodeConnectionSequence |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ _writeDataConnection()
| void warptwin::WarpTwinPyConfigWriter::_writeDataConnection |
( |
Connection * | upstream, |
|
|
Connection * | downstream ) |
|
overrideprotectedvirtual |
Write the connection of one "Connection" to another.
- Parameters
-
| upstream | The data output connection (typically, but not always an output) to connect |
| downstream | The data input connection (typically, but not always an input) to connect |
Reimplemented from warptwin::ConfigurationWriter.
◆ _writeDataValue()
| void warptwin::WarpTwinPyConfigWriter::_writeDataValue |
( |
ImNode * | node | ) |
|
|
overrideprotectedvirtual |
◆ _writeLogData()
| void warptwin::WarpTwinPyConfigWriter::_writeLogData |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ _writeOutputEnd()
| void warptwin::WarpTwinPyConfigWriter::_writeOutputEnd |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ _writeOutputStart()
| void warptwin::WarpTwinPyConfigWriter::_writeOutputStart |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ build()
| std::future< int > warptwin::WarpTwinPyConfigWriter::build |
( |
| ) |
|
|
virtual |
◆ post()
| int warptwin::WarpTwinPyConfigWriter::post |
( |
| ) |
|
Call the dallin tool to post process data.
◆ resetRunStatus()
| void warptwin::WarpTwinPyConfigWriter::resetRunStatus |
( |
| ) |
|
|
inline |
Reset the run status boolean.
◆ run()
| std::future< int > warptwin::WarpTwinPyConfigWriter::run |
( |
| ) |
|
Write the Python file and run as configured.
◆ stop()
| std::vector< int > warptwin::WarpTwinPyConfigWriter::stop |
( |
std::vector< std::string > & | pids | ) |
|
Stop the PIDs related to execution of the Python file.
- Parameters
-
| pids | Vector of PIDs to be populated |
- Returns
- Result of system command to stop the PIDs
◆ _is_build
| bool warptwin::WarpTwinPyConfigWriter::_is_build |
|
protected |
Boolean to indicate whether this is a build or run. True indicates build.
◆ _is_run
| bool warptwin::WarpTwinPyConfigWriter::_is_run |
|
protected |
Boolean to indicate whether this is a build or run. True indicates run.
The documentation for this class was generated from the following files: