API  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
OpenSim::Manager Class Reference

A class that manages the execution of a simulation. More...

Public Member Functions

virtual ~Manager ()
 
 Manager (Model &, SimTK::Integrator &)
 
 Manager (Model &aModel)
 Constructor that takes a model only and builds integrator internally. More...
 
 Manager ()
 A Constructor that does not take a model or controllerSet. More...
 
void setSessionName (const std::string &name)
 
void setModel (Model &aModel)
 
const std::string & getSessionName () const
 
const std::string & toString () const
 
void setPerformAnalyses (bool performAnalyses)
 
void setWriteToStorage (bool writeToStorage)
 
SimTK::IntegratorgetIntegrator () const
 
void setIntegrator (SimTK::Integrator *)
 
void setInitialTime (double aTI)
 
double getInitialTime () const
 
void setFinalTime (double aTF)
 
double getFinalTime () const
 
void setFirstDT (double aDT)
 
double getFirstDT () const
 
void setUseSpecifiedDT (bool aTrueFalse)
 
bool getUseSpecifiedDT () const
 
void setUseConstantDT (bool aTrueFalse)
 
bool getUseConstantDT () const
 
const Array< double > & getDTArray ()
 
void setDTArray (int aN, const double aDT[], double aTI=0.0)
 
double getDTArrayDT (int aStep)
 
void printDTArray (const char *aFileName=NULL)
 
const Array< double > & getTimeArray ()
 
double getTimeArrayTime (int aStep)
 
int getTimeArrayStep (double aTime)
 
void printTimeArray (const char *aFileName=NULL)
 
void resetTimeAndDTArrays (double aTime)
 
double getNextTimeArrayTime (double aTime)
 
void setSystem (SimTK::System *system)
 
bool integrate (SimTK::State &s, double dtFirst=1.0e-6)
 
bool doIntegration (SimTK::State &s, int step, double dtFirst)
 
void initialize (SimTK::State &s, double dt)
 
void finalize (SimTK::State &s)
 
double getFixedStepSize (int tArrayStep) const
 
bool hasStateStorage () const
 
void setStateStorage (Storage &aStorage)
 
StoragegetStateStorage () const
 
void halt ()
 
void clearHalt ()
 
bool checkHalt ()
 

Detailed Description

A class that manages the execution of a simulation.

Constructor & Destructor Documentation

virtual OpenSim::Manager::~Manager ( )
virtual
OpenSim::Manager::Manager ( Model ,
SimTK::Integrator  
)
OpenSim::Manager::Manager ( Model aModel)

Constructor that takes a model only and builds integrator internally.

OpenSim::Manager::Manager ( )

A Constructor that does not take a model or controllerSet.

Member Function Documentation

bool OpenSim::Manager::checkHalt ( )
void OpenSim::Manager::clearHalt ( )
bool OpenSim::Manager::doIntegration ( SimTK::State s,
int  step,
double  dtFirst 
)
void OpenSim::Manager::finalize ( SimTK::State s)
const Array<double>& OpenSim::Manager::getDTArray ( )
double OpenSim::Manager::getDTArrayDT ( int  aStep)
double OpenSim::Manager::getFinalTime ( ) const
double OpenSim::Manager::getFirstDT ( ) const
double OpenSim::Manager::getFixedStepSize ( int  tArrayStep) const
double OpenSim::Manager::getInitialTime ( ) const
SimTK::Integrator& OpenSim::Manager::getIntegrator ( ) const
double OpenSim::Manager::getNextTimeArrayTime ( double  aTime)
const std::string& OpenSim::Manager::getSessionName ( ) const
Storage& OpenSim::Manager::getStateStorage ( ) const
const Array<double>& OpenSim::Manager::getTimeArray ( )
int OpenSim::Manager::getTimeArrayStep ( double  aTime)
double OpenSim::Manager::getTimeArrayTime ( int  aStep)
bool OpenSim::Manager::getUseConstantDT ( ) const
bool OpenSim::Manager::getUseSpecifiedDT ( ) const
void OpenSim::Manager::halt ( )
bool OpenSim::Manager::hasStateStorage ( ) const
void OpenSim::Manager::initialize ( SimTK::State s,
double  dt 
)
bool OpenSim::Manager::integrate ( SimTK::State s,
double  dtFirst = 1.0e-6 
)
void OpenSim::Manager::printDTArray ( const char *  aFileName = NULL)
void OpenSim::Manager::printTimeArray ( const char *  aFileName = NULL)
void OpenSim::Manager::resetTimeAndDTArrays ( double  aTime)
void OpenSim::Manager::setDTArray ( int  aN,
const double  aDT[],
double  aTI = 0.0 
)
void OpenSim::Manager::setFinalTime ( double  aTF)
void OpenSim::Manager::setFirstDT ( double  aDT)
void OpenSim::Manager::setInitialTime ( double  aTI)
void OpenSim::Manager::setIntegrator ( SimTK::Integrator )
void OpenSim::Manager::setModel ( Model aModel)
void OpenSim::Manager::setPerformAnalyses ( bool  performAnalyses)
inline
void OpenSim::Manager::setSessionName ( const std::string &  name)
void OpenSim::Manager::setStateStorage ( Storage aStorage)
void OpenSim::Manager::setSystem ( SimTK::System system)
inline
void OpenSim::Manager::setUseConstantDT ( bool  aTrueFalse)
void OpenSim::Manager::setUseSpecifiedDT ( bool  aTrueFalse)
void OpenSim::Manager::setWriteToStorage ( bool  writeToStorage)
inline
const std::string& OpenSim::Manager::toString ( ) const

The documentation for this class was generated from the following file: