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

Public Member Functions | |
| rdAnalysis (rdModel *aModel) | |
| Default constructor. | |
| virtual | ~rdAnalysis () |
| Destructor. | |
| void | setInDegrees (bool aTrueFalse) |
| Set whether or not to write the output of angles in degrees. | |
| bool | getInDegrees () const |
| Get whether or not output of angles will be in degrees or radians. | |
| void | setOn (bool aTrueFalse) |
| Turn this analysis on or off. | |
| bool | getOn () const |
| Get whether or not this analysis is on. | |
| void | setName (const char *aName) |
| Set the name of this analysis. | |
| const char * | getName () const |
| Get the name of this analysis. | |
| void | setDescription (const char *aDescrip) |
| Set the description of this analysis. | |
| const char * | getDescription () const |
| Get the description of this analysis. | |
| void | setColumnLabels (const char *aLabels) |
| Set the column labels for this analysis. | |
| const char * | getColumnLabels () const |
| Get the columns labels of this analysis. | |
| void | setStorageInterval (int aInterval) |
| Set the storage interval. | |
| int | getStorageInterval () const |
| Get the storage interval. | |
| rdModel * | getModel () const |
| Get a pointer to the model on which this analysis is being performed. | |
| virtual bool | proceed (int aStep=0) |
| Return whether or not to proceed with this analysis. | |
| virtual int | begin (int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL) |
| This method is called at the beginning of an analysis so that any necessary initializations may be performed. | |
| virtual int | analyze (double *aXPrev, double *aYPrev, int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL) |
| This method is called to perform the analysis. | |
| virtual int | end (int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL) |
| This method is called at the end of an analysis so that any necessary finalizations may be performed. | |
| virtual int | printResults (char *aBaseName, char *aDir=NULL, double aDT=-1.0, char *aExtension=".sto") |
| Print the results of the analysis. | |
Static Public Attributes | |
| const int | NAME_LENGTH = rdAnalysis_NAME_LENGTH |
| const int | DESCRIP_LENGTH = rdAnalysis_DESCRIP_LENGTH |
Protected Attributes | |
| bool | _inDegrees |
| Whether or not to write output of angles in degrees. | |
| bool | _on |
| On or Off flag. | |
| char | _name [rdAnalysis_NAME_LENGTH] |
| Name. | |
| char | _descrip [rdAnalysis_DESCRIP_LENGTH] |
| Description. | |
| char | _labels [rdAnalysis_DESCRIP_LENGTH] |
| Column labels. | |
| rdModel * | _model |
| Model. | |
| int | _storageInterval |
| Step interval at which analysis results are stored. | |
|
|
Default constructor.
|
|
||||||||||||||||||||||||||||||||||||
|
This method is called to perform the analysis. It can be called during the execution of a forward integrations or after the integration by feeding it the necessary data. When called during an integration, this method is meant to be called in rdModel::integStepCallback(), which has the same argument list. This method should be overriden in derived classes. It is included here so that the derived class will not have to implement it if it is not necessary.
Reimplemented in suActuation, suActuatorGeneralizedForces, suBodyKinematics, suContact, suDecomp, suGeneralizedForces, suKinematics, and suPointKinematics. |
|
||||||||||||||||||||||||||||
|
This method is called at the beginning of an analysis so that any necessary initializations may be performed. This method is meant to be called at the begining of an integration in rdModel::integBeginCallback() and has the same argument list. This method should be overriden in the child class. It is included here so that the child class will not have to implement it if it is not necessary.
Reimplemented in suActuation, suActuatorGeneralizedForces, suBodyKinematics, suContact, suDecomp, suDecompTaylor, suGeneralizedForces, suKinematics, and suPointKinematics. |
|
||||||||||||||||||||||||||||
|
This method is called at the end of an analysis so that any necessary finalizations may be performed. This method is meant to be called at the end of an integration in rdModel::integEndCallback() and has the same argument list. This method should be overriden in the child class. It is included here so that the child class will not have to implement it if it is not necessary.
Reimplemented in suActuation, suActuatorGeneralizedForces, suBodyKinematics, suContact, suDecomp, suGeneralizedForces, suKinematics, and suPointKinematics. |
|
|
Get the columns labels of this analysis.
|
|
|
Get the description of this analysis.
|
|
|
Get whether or not output of angles will be in degrees or radians.
|
|
|
Get a pointer to the model on which this analysis is being performed.
|
|
|
Get the name of this analysis.
|
|
|
Get whether or not this analysis is on.
|
|
||||||||||||||||||||
|
Print the results of the analysis.
Reimplemented in suActuation, suActuatorGeneralizedForces, suBodyIndAcc, suBodyIndAccCOM, suBodyIndPowers, suBodyKinematics, suBodyPointIndAcc, suContact, suDecomp, suGeneralizedForces, suIndAcc, suIndContactPowers, suKinematics, and suPointKinematics. |
|
|
Return whether or not to proceed with this analysis.
|
|
|
Set the column labels for this analysis. The length of the column labels string should be 8191 characters or shorter.
|
|
|
Set the description of this analysis. The length of the description should be 8191 characters or shorter.
|
|
|
Set whether or not to write the output of angles in degrees. This flag must be set before an analysis is performed to ensure that the results are in the proper format.
|
|
|
Set the name of this analysis. The length of the name should be 2047 characters or shorter.
|
|
|
Turn this analysis on or off.
|
1.3