Control Libraries 6.3.4
Loading...
Searching...
No Matches
ParameterInterface.cpp
1#include "state_representation/parameters/ParameterInterface.hpp"
2
3namespace state_representation {
4
6 const std::string& name, const ParameterType& type, const StateType& parameter_state_type
7) : State(StateType::PARAMETER, name), parameter_type_(type), parameter_state_type_(parameter_state_type) {}
8
10 State(parameter),
11 parameter_type_(parameter.get_parameter_type()),
12 parameter_state_type_(parameter.get_parameter_state_type()) {}
13
15 State::operator=(state);
16 this->parameter_type_ = state.get_parameter_type();
17 this->parameter_state_type_ = state.get_parameter_state_type();
18 return (*this);
19}
20
22 return parameter_type_;
23}
24
26 return parameter_state_type_;
27}
28
29}// namespace state_representation
StateType get_parameter_state_type() const
Get the state type of the parameter.
ParameterInterface & operator=(const ParameterInterface &state)
Copy assignment operator that has to be defined to the custom assignment operator.
ParameterType get_parameter_type() const
Get the parameter type.
ParameterInterface(const std::string &name, const ParameterType &type, const StateType &parameter_state_type=StateType::NONE)
Constructor with parameter name and type.
Abstract class to represent a state.
Definition: State.hpp:25
State & operator=(const State &state)
Copy assignment operator that have to be defined to the custom assignment operator.
Definition: State.hpp:189
Core state variables and objects.
ParameterType
The parameter value types.
StateType
The class types inheriting from State.
Definition: StateType.hpp:13