DUNE: Uniform Navigational Environment
2016.03.0
|
Classes | |
struct | ValuesIf |
Public Types | |
enum | Visibility { VISIBILITY_USER, VISIBILITY_DEVELOPER } |
enum | Scope { SCOPE_GLOBAL, SCOPE_IDLE, SCOPE_PLAN, SCOPE_MANEUVER } |
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(), Transports::Fragments::Task::Task(), Control::ASV::RemoteOperation::Task::Task(), Monitors::CPU::Task::Task(), Sensors::GillWindObserverII::Task::Task(), Simulators::AcousticModem::Task::Task(), Simulators::UAVAutopilot::Task::Task(), Transports::Cache::Task::Task(), Sensors::XchangeSV::Task::Task(), Sensors::MiniSVS::Task::Task(), Transports::SerialOverTCP::Task::Task(), Transports::Discovery::Task::Task(), Control::Path::VectorField::Task::Task(), Supervisors::Entities::Task::Task(), Transports::LoggingDigest::Task::Task(), Vision::FrameGrabber::Task::Task(), Sensors::CyclopsC7::Task::Task(), Control::UAV::LOS::Task::Task(), Monitors::Emergency::Task::Task(), Supervisors::UAV::LostComms::Task::Task(), Vision::PhotoTrigger::Task::Task(), Sensors::EmulatedGPS::Task::Task(), Control::Path::ILOS::Task::Task(), Control::ROV::Depth::Task::Task(), Control::AUV::Allocator::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Navigation::General::GPSNavigation::Task::Task(), Autonomy::TREX::Task::Task(), Control::AUV::RemoteOperation::Task::Task(), Transports::IridiumSBD::Task::Task(), Sensors::AIM104MultiIO::Task::Task(), Sensors::SmartX::Task::Task(), Sensors::WifiRSSI::Task::Task(), Sensors::MCC1608G::Task::Task(), Sensors::AIS::Task::Task(), Control::AUV::LMI::Task::Task(), Navigation::AUV::CLRanger::Task::Task(), Monitors::Clock::Task::Task(), Sensors::SW100::Task::Task(), Monitors::FuelLevel::Task::Task(), Transports::Noptilus::Task::Task(), Maneuver::VehicleFormation::Test::Task::Task(), Autonomy::OnEvent::Task::Task(), Transports::Replay::Task::Task(), Sensors::MicrostrainMIP::Task::Task(), Supervisors::AUV::LostComms::Task::Task(), Supervisors::AUV::Assist::Task::Task(), Control::ROV::HorizontalPlane::Task::Task(), Transports::GSM::Task::Task(), Monitors::Medium::Task::Task(), Navigation::General::ROV::Task::Task(), Monitors::Entities::Task::Task(), Sensors::MTi::Task::Task(), Supervisors::Vehicle::Task::Task(), Transports::Announce::Task::Task(), Transports::UAN::Task::Task(), Supervisors::ClockPPS::Task::Task(), Plan::DB::Task::Task(), DUNE::Tasks::Task::Task(), Transports::SUNSET::Task::Task(), Control::ROV::RemoteOperation::Task::Task(), Transports::UDP::Task::Task(), Control::AUV::Speed::Task::Task(), Monitors::OperationalLimits::Task::Task(), Plan::Engine::Task::Task(), Sensors::OS4000::Task::Task(), Power::LUEMB::Task::Task(), Simulators::UAV::Task::Task(), Sensors::BlueView4::Task::Task(), Actuators::LED4R::Task::Task(), Sensors::XR620CTD::Task::Task(), Sensors::IFOG::Task::Task(), Sensors::Microstrain3DMGX3::Task::Task(), Vision::Lumenera::Task::Task(), Sensors::ExplorerDVL::Task::Task(), Control::AUV::Attitude::Task::Task(), Sensors::MLBLTracker::Task::Task(), Navigation::AUV::Navigation::Task::Task(), Vision::DFK51BG02H::Task::Task(), Maneuver::VehicleFormation::Coordinator::Task::Task(), Sensors::Imagenex881A::Task::Task(), Sensors::MetrecX::Task::Task(), Control::UAV::Ardupilot::Task::Task(), Actuators::MCD4R::Task::Task(), Sensors::MLBL::Task::Task(), and Maneuver::VehicleFormation::FormCollAvoid::Task::Task().
|
inline |
References m_default.
|
inline |
References m_desc.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Tasks::SimpleTransport::SimpleTransport(), Control::AntennaTracker::Task::Task(), Navigation::General::GPSNavigation::Task::Task(), Plan::Generator::Task::Task(), Monitors::Clock::Task::Task(), Navigation::AUV::CLRanger::Task::Task(), Transports::Noptilus::Task::Task(), Supervisors::ClockPPS::Task::Task(), Transports::SUNSET::Task::Task(), Transports::UDP::Task::Task(), Vision::Lumenera::Task::Task(), Sensors::ExplorerDVL::Task::Task(), Navigation::AUV::Navigation::Task::Task(), and Sensors::MLBL::Task::Task().
|
inline |
References m_visibility.
|
inline |
References m_max_size, m_reader, and DUNE::Tasks::AbstractParameterParser::maximumSize().
Referenced by size().
|
inline |
|
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().
Referenced by Control::Path::VectorField::Task::Task(), Control::Path::ILOS::Task::Task(), Monitors::OperationalLimits::Task::Task(), Actuators::LED4R::Task::Task(), and Control::UAV::Ardupilot::Task::Task().
|
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.
Referenced by DUNE::Tasks::Task::paramActive(), Control::UAV::LOS::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Transports::IridiumSBD::Task::Task(), Transports::SUNSET::Task::Task(), Actuators::LED4R::Task::Task(), Vision::Lumenera::Task::Task(), and Control::UAV::Ardupilot::Task::Task().
Parameter & DUNE::Tasks::Parameter::scope | ( | const std::string | a_scope | ) |
References m_scope, and scopeFromString().
|
static |
Referenced by 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().
Referenced by Sensors::CyclopsC7::Task::Task(), Sensors::AIM104MultiIO::Task::Task(), Sensors::MCC1608G::Task::Task(), Power::LUEMB::Task::Task(), and Sensors::MetrecX::Task::Task().
|
inline |
References m_units.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Tasks::Periodic::Periodic(), Control::UAV::RemoteOperation::Task::Task(), Navigation::AUV::Ranger::Task::Task(), Transports::Iridium::Task::Task(), Control::UAV::LOS::Task::Task(), Monitors::Emergency::Task::Task(), Supervisors::UAV::LostComms::Task::Task(), Sensors::EmulatedGPS::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Transports::IridiumSBD::Task::Task(), Sensors::AIM104MultiIO::Task::Task(), Monitors::Clock::Task::Task(), Transports::Noptilus::Task::Task(), Sensors::MicrostrainMIP::Task::Task(), Monitors::Entities::Task::Task(), Monitors::Medium::Task::Task(), Transports::Announce::Task::Task(), Transports::UAN::Task::Task(), Supervisors::ClockPPS::Task::Task(), Transports::UDP::Task::Task(), Monitors::OperationalLimits::Task::Task(), Simulators::UAV::Task::Task(), Actuators::LED4R::Task::Task(), Sensors::XR620CTD::Task::Task(), Sensors::IFOG::Task::Task(), Sensors::Microstrain3DMGX3::Task::Task(), Sensors::MLBLTracker::Task::Task(), Actuators::MCD4R::Task::Task(), and Sensors::MLBL::Task::Task().
|
inline |
References m_units.
|
inline |
References m_value.
|
inline |
References m_reader, m_values, and DUNE::Tasks::AbstractParameterParser::values().
Referenced by Sensors::MCC1608G::Task::Task(), Autonomy::OnEvent::Task::Task(), Vision::Lumenera::Task::Task(), Sensors::MLBL::Task::Task(), and writeXML().
|
inline |
|
inline |
Set parameter's visibility.
[in] | a_visibility | desired visibility. |
References m_visibility.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Tasks::Task::paramActive(), Navigation::AUV::Ranger::Task::Task(), Control::UAV::LOS::Task::Task(), Monitors::Emergency::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Transports::IridiumSBD::Task::Task(), Transports::UAN::Task::Task(), Transports::SUNSET::Task::Task(), Control::ROV::RemoteOperation::Task::Task(), Actuators::LED4R::Task::Task(), Vision::Lumenera::Task::Task(), Control::UAV::Ardupilot::Task::Task(), and Sensors::MLBL::Task::Task().
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 |
|
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().