#include <Actuatorport.h>
Public Member Functions | |
Actuatorport (const std::string &name, Actuator *actuator, int portId, double minValue, double maxValue) | |
std::string | getName () const |
void | setValue (double value) |
double | getMinValue () const |
double | getMaxValue () const |
Private Attributes | |
std::string | name |
Actuator * | actuator |
int | portId |
double | minValue |
double | maxValue |
Definition at line 21 of file Actuatorport.h.
Actuatorport::Actuatorport | ( | const std::string & | name, | |
Actuator * | actuator, | |||
int | portId, | |||
double | minValue, | |||
double | maxValue | |||
) |
Constructor
name | The name of the actuatorport | |
actuator | A pointer to the actuator | |
portId | The id of the port | |
minValue | The minimum value to be set | |
maxValue | The maximum value to be set |
Definition at line 12 of file Actuatorport.cpp.
References actuator, and SimObject::getFullName().
double Actuatorport::getMaxValue | ( | ) | const [inline] |
Returns the maximum value to be set
Definition at line 64 of file Actuatorport.h.
References maxValue.
double Actuatorport::getMinValue | ( | ) | const [inline] |
Returns the minimum value to be set
Definition at line 59 of file Actuatorport.h.
References minValue.
std::string Actuatorport::getName | ( | ) | const [inline] |
void Actuatorport::setValue | ( | double | value | ) |
Sets the value of the actuatorport
value | The value |
Definition at line 22 of file Actuatorport.cpp.
References actuator, maxValue, minValue, portId, and Actuator::setValue().
Actuator* Actuatorport::actuator [private] |
A pointer to the actuator
Definition at line 27 of file Actuatorport.h.
Referenced by Actuatorport(), and setValue().
double Actuatorport::maxValue [private] |
The maximum value to be set
Definition at line 33 of file Actuatorport.h.
Referenced by getMaxValue(), and setValue().
double Actuatorport::minValue [private] |
The minimum value to be set
Definition at line 31 of file Actuatorport.h.
Referenced by getMinValue(), and setValue().
std::string Actuatorport::name [private] |
int Actuatorport::portId [private] |