Encapsulates all user interaction for setting options, logging data and plotting results. More...
#include <user_interaction.hpp>
Protected Attributes | |
BlockStatus | status |
Protected Attributes inherited from Options | |
std::vector< OptionsList > | lists |
Protected Attributes inherited from Logging | |
std::vector< LogRecord > | logCollection |
int | logIdx |
Protected Attributes inherited from Plotting | |
PlotCollection | plotCollection |
Encapsulates all user interaction for setting options, logging data and plotting results.
The class UserInteraction encapsulates all user interaction for setting options, logging data and plotting results.
Definition at line 57 of file user_interaction.hpp.
BEGIN_NAMESPACE_ACADO UserInteraction::UserInteraction | ( | ) |
Default constructor.
Definition at line 44 of file user_interaction.cpp.
UserInteraction::UserInteraction | ( | const UserInteraction & | rhs | ) |
Copy constructor (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 50 of file user_interaction.cpp.
|
virtual |
Destructor.
Definition at line 56 of file user_interaction.cpp.
|
virtual |
Adds a window to the plot collection. This function is overloaded here in order to add the plotDataRecord required to plot the window to the log collection.
[in] | _window | Window to be added. |
Definition at line 84 of file user_interaction.cpp.
|
protectedvirtual |
Copies all collected logging information required to plot a given window. This function is overloaded within the UserInterface class to syncronize the logging information collected elsewhere within the algorithm with the one stored within the given window for plotting.
[in] | _window | Window to be plotted. |
Reimplemented from Plotting.
Definition at line 111 of file user_interaction.cpp.
|
protected |
Gets current status of user interface.
Definition at line 125 of file user_interaction.cpp.
|
virtual |
Adds a window to the plot collection. This function is overloaded here in order to add the plotDataRecord required to plot the window to the log collection.
[in] | _window | Window to be added. |
Definition at line 77 of file user_interaction.cpp.
|
virtual |
Adds a record to the log collection.
@param[in] record Record to be added. \note This function tunnels the corresponding function of the Logging class. It is introduced to avoid syntax ambiguity only.
Definition at line 97 of file user_interaction.cpp.
UserInteraction & UserInteraction::operator= | ( | const UserInteraction & | rhs | ) |
Assignment operator (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 61 of file user_interaction.cpp.
|
protected |
Sets status of user interface.
@param[in] _status New status of user interface
Definition at line 131 of file user_interaction.cpp.
|
protected |
Current status of the user interface, see documentation of BlockStatus for details.
Definition at line 165 of file user_interaction.hpp.