DUNE: Uniform Navigational Environment
2019.02.1
|
Classes | |
struct | ValuesIf |
Public Types |
Public Member Functions | |
Parameter (const std::string ¶m_name, const std::string &type_name) | |
~Parameter (void) | |
void | reader (AbstractParameterParser *r) |
void | read (const std::string &val) |
bool | commit (void) |
std::string | name (void) const |
std::string | value (void) const |
std::string | defaultValue (void) const |
Parameter & | defaultValue (const std::string &val) |
Parameter & | valuesIf (const std::string &if_param, const std::string &if_value, const std::string &a_values) |
Units::Types | units (void) const |
Parameter & | units (Units::Types val) |
std::string | description (void) const |
Parameter & | description (const std::string &val) |
Parameter & | minimumValue (const std::string &min_value) |
Parameter & | maximumValue (const std::string &max_value) |
Parameter & | size (int size_value) |
Parameter & | minimumSize (unsigned min_size) |
Parameter & | maximumSize (unsigned max_size) |
Parameter & | values (const std::string &list) |
Parameter & | visibility (Visibility a_visibility) |
Parameter & | visibility (const std::string &a_visibility) |
Parameter & | scope (Scope a_scope) |
Parameter & | scope (const std::string a_scope) |
void | writeXML (std::ostream &os) const |
bool | changed (void) |
void | setChanged (bool enabled=true) |
Visibility | getVisibility (void) const |
Scope | getScope (void) const |
Static Public Member Functions | |
static Visibility | visibilityFromString (const std::string &v) |
static const char * | visibilityToString (Visibility v) |
static Scope | scopeFromString (const std::string &s) |
static const char * | scopeToString (Scope s) |
Protected Attributes | |
std::string | m_name |
std::string | m_type_name |
std::string | m_desc |
std::string | m_default |
Units::Types | m_units |
std::string | m_value |
std::string | m_values |
unsigned | m_min_size |
unsigned | m_max_size |
std::string | m_min_value |
std::string | m_max_value |
std::vector< ValuesIf * > | m_values_if |
AbstractParameterParser * | m_reader |
bool | m_changed |
Visibility | m_visibility |
Scope | m_scope |
Parameter scope.
Enumerator | |
---|---|
SCOPE_GLOBAL |
Parameter can be changed in all system states. |
SCOPE_IDLE |
Parameter can only be changed when the system is not performing plans/maneuvers. |
SCOPE_PLAN |
Parameter can be changed on a per plan basis. |
SCOPE_MANEUVER |
Parameter can be changed on a per maneuver basis. |
DUNE::Tasks::Parameter::Parameter | ( | const std::string & | param_name, |
const std::string & | type_name | ||
) |
Constructor.
DUNE::Tasks::Parameter::~Parameter | ( | void | ) |
Destructor.
References m_reader, and m_values_if.
|
inline |
References m_changed.
|
inline |
References DUNE::Tasks::AbstractParameterParser::commit(), and m_reader.
Referenced by DUNE::Tasks::ParameterTable::set().
|
inline |
References m_default.
Referenced by DUNE::Control::BasicAutopilot::BasicAutopilot(), DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Control::BasicRemoteOperation::BasicRemoteOperation(), DUNE::Tasks::Task::paramActive(), DUNE::Control::PathController::PathController(), DUNE::Control::ProxyPathController::ProxyPathController(), DUNE::Tasks::ParameterTable::set(), DUNE::Tasks::SimpleTransport::SimpleTransport(), Autonomy::TextActions::Task::Task(), Actuators::PWM::Task::Task(), Navigation::General::ROV::Task::Task(), and DUNE::Tasks::Task::Task().
|
inline |
References m_default.
|
inline |
References m_desc.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), and DUNE::Tasks::SimpleTransport::SimpleTransport().
|
inline |
References m_visibility.
|
inline |
References m_max_size, m_reader, and DUNE::Tasks::AbstractParameterParser::maximumSize().
Referenced by size().
|
inline |
References m_max_value, m_reader, and DUNE::Tasks::AbstractParameterParser::maximumValue().
|
inline |
References m_min_size, m_reader, and DUNE::Tasks::AbstractParameterParser::minimumSize().
Referenced by size().
|
inline |
References m_min_value, m_reader, and DUNE::Tasks::AbstractParameterParser::minimumValue().
|
inline |
References m_name.
Referenced by writeXML().
void DUNE::Tasks::Parameter::read | ( | const std::string & | val | ) |
void DUNE::Tasks::Parameter::reader | ( | AbstractParameterParser * | r | ) |
References m_reader.
Referenced by DUNE::Tasks::ParameterTable::add().
References m_scope, and writeXML().
Referenced by DUNE::Tasks::Task::paramActive().
Parameter & DUNE::Tasks::Parameter::scope | ( | const std::string | a_scope | ) |
References m_scope, and scopeFromString().
|
static |
Referenced by DUNE::Tasks::Task::deactivationFailed(), and scope().
|
static |
Referenced by DUNE::Tasks::Task::paramActive(), and writeXML().
|
inline |
References m_changed.
Referenced by DUNE::Tasks::ParameterTable::set().
|
inline |
References maximumSize(), and minimumSize().
|
inline |
References m_units.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), and DUNE::Tasks::Periodic::Periodic().
|
inline |
References m_units.
|
inline |
References m_value.
|
inline |
References m_reader, m_values, and DUNE::Tasks::AbstractParameterParser::values().
Referenced by writeXML().
|
inline |
|
inline |
Set parameter's visibility.
[in] | a_visibility | desired visibility. |
References m_visibility.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), and DUNE::Tasks::Task::paramActive().
Parameter & DUNE::Tasks::Parameter::visibility | ( | const std::string & | a_visibility | ) |
Set parameter's visibility.
[in] | a_visibility | desired visibility. |
References m_visibility, and visibilityFromString().
|
static |
Referenced by visibility().
|
static |
Referenced by DUNE::Tasks::Task::paramActive(), and writeXML().
void DUNE::Tasks::Parameter::writeXML | ( | std::ostream & | os | ) | const |
References DUNE::Units::getAbbrev(), m_default, m_desc, m_max_size, m_max_value, m_min_size, m_min_value, m_name, m_scope, m_type_name, m_units, m_value, m_values, m_values_if, m_visibility, name(), scopeToString(), DUNE::uncastLexical(), values(), and visibilityToString().
Referenced by scope().
|
protected |
True if the value of this parameter changed.
Referenced by changed(), and setChanged().
|
protected |
Default value.
Referenced by defaultValue(), and writeXML().
|
protected |
Description.
Referenced by description(), and writeXML().
|
protected |
Maximum size.
Referenced by maximumSize(), and writeXML().
|
protected |
Maximum value.
Referenced by maximumValue(), and writeXML().
|
protected |
Minimum size.
Referenced by minimumSize(), and writeXML().
|
protected |
Minimum value.
Referenced by minimumValue(), and writeXML().
|
protected |
Name.
Referenced by name(), read(), and writeXML().
|
protected |
String reader.
Referenced by commit(), maximumSize(), maximumValue(), minimumSize(), minimumValue(), read(), reader(), values(), and ~Parameter().
|
protected |
Parameter scope.
Referenced by getScope(), scope(), and writeXML().
|
protected |
Type name.
Referenced by writeXML().
|
protected |
Referenced by units(), and writeXML().
|
protected |
Current value.
Referenced by read(), value(), and writeXML().
|
protected |
Comma separated list of valid values.
Referenced by values(), and writeXML().
|
protected |
Conditional comma separated list of valid values.
Referenced by valuesIf(), writeXML(), and ~Parameter().
|
protected |
Parameter visibility.
Referenced by getVisibility(), visibility(), and writeXML().