#include <suActuatorPerturbation.h>
Inheritance diagram for suActuatorPerturbation:

Public Types | |
| enum | PertType { SCALE, DELTA, CONSTANT } |
| Perturbation types. More... | |
Public Member Functions | |
| suActuatorPerturbation (rdModel *aModel) | |
| Construct a derivative callback instance for perturbing actuator forces during an integration. | |
| virtual | ~suActuatorPerturbation () |
| Destructor. | |
| void | setActuator (int aActuatorIndex) |
| Set for which actuator a force perturbation should be made. | |
| int | getActuator () const |
| Get for which actuator a force perturbation should be made. | |
| void | setAllowNegForce (bool aTrueFalse) |
| Set whether it is permissable that a perturbation produces a negative force. | |
| bool | getAllowNegForce () const |
| Get whether negative force is allowed. | |
| void | setPerturbation (PertType aPerturbationType, double aPerturbation) |
| Set the perturbation type and the perturbation size. | |
| double | getPerturbation () const |
| Get the size of the force perturbation that is made to the action forces. | |
| PertType | getPerturbationType () const |
| Get the type of the force perturbation that is made to the action forces. | |
| rdStorage * | getForceStorage () |
| Get a pointer to the rdStorage containing the nominal and perturbed force. | |
| void | reset () |
| Reset the perturbation callback. | |
| virtual void | computeActuation (double aT, double *aX, double *aY) |
| Callback called right after actuation has been computed by the model. | |
| virtual void | applyActuation (double aT, double *aX, double *aY) |
| Callback called right after actuation has been applied by the model. | |
Protected Attributes | |
| int | _actuator |
| Which actuator. | |
| bool | _allowNegForce |
| Negative force flag *. | |
| double | _perturbation |
| Force perturbation. | |
| PertType | _perturbationType |
| Type of perturbation. | |
| double | _force |
| Nominal actuator force. | |
| rdStorage * | _forceStore |
| Storage for holding nominal and perturbed force. | |
Private Member Functions | |
| void | setNull () |
| Set member variables to approprate NULL values. | |
|
|
Perturbation types. See setPerturbation(). |
|
|
Construct a derivative callback instance for perturbing actuator forces during an integration.
|
|
||||||||||||||||
|
Callback called right after actuation has been applied by the model. The nominal atuator force is restored. Reimplemented from rdDerivCallback. Reimplemented in suActuatorPerturbationIndependent. |
|
||||||||||||||||
|
Callback called right after actuation has been computed by the model. The nominal atuator force is recorded so that it can be restored, and the actuator force is replaced by its perturbed value.
Reimplemented from rdDerivCallback. Reimplemented in suActuatorPerturbationIndependent. |
|
|
Get for which actuator a force perturbation should be made.
|
|
|
Get whether negative force is allowed.
|
|
|
Get a pointer to the rdStorage containing the nominal and perturbed force.
|
|
|
Get the size of the force perturbation that is made to the action forces.
|
|
|
Get the type of the force perturbation that is made to the action forces.
|
|
|
Reset the perturbation callback. This method resets any internal objects so that a new perturbation series can be run cleanly. Specifically, for this class, the force storage object is reset (or emptied) so that any new force perturbations are stored at the beginning of the force storage object. Reimplemented in suActuatorPerturbationIndependent. |
|
|
Set for which actuator a force perturbation should be made.
|
|
|
Set whether it is permissable that a perturbation produces a negative force.
|
|
||||||||||||
|
Set the perturbation type and the perturbation size. Three different types of perturbation are allowed, as listed in the enum PertType.
PertType SCALE The perturbation factor may be any value; however, a value between 0.0 and 1.0 what is typically used.
PertType DELTA
PertType CONSTANT
|
1.3