AnimatLab  2
Test
AnimatSim::SimulationThread Class Reference
+ Inheritance diagram for AnimatSim::SimulationThread:
+ Collaboration diagram for AnimatSim::SimulationThread:

Public Member Functions

virtual void HandleCriticalError (std::string strError)
 Handle critical-errors in the GUI. A critical error will report the error and then shut the entire application down. More...
 
virtual void HandleNonCriticalError (std::string strError)
 Handle a non-critical error in the GUI. Non-critical errors are simply reported and the simulation stopped if it is running. More...
 
virtual bool NeedToStopSim ()
 
virtual void NeedToStopSimulation ()
 Callback to inform that GUI that the currently running simulation needs to be stopped. More...
 
virtual void PauseSimulation ()
 
virtual void ResetSimulation ()
 
virtual void ResumeSimulation ()
 
virtual void ShutdownSimulation ()
 
virtual SimulatorSim ()
 
virtual void Simulate (float fltTime=-1, bool bBlocking=true, float fltWaitTime=-1)
 
virtual void StartSimulation (std::string strSimFile, bool bForceNoWindows=false)
 
virtual void StopSimulation ()
 
- Public Member Functions inherited from AnimatSim::ISimGUICallback
 ISimGUICallback (void)
 Default constructor. More...
 
virtual ~ISimGUICallback (void)
 Destructor. More...
 

Protected Member Functions

virtual void ProcessSimulation ()
 

Protected Attributes

bool m_bNeedToStop
 
bool m_bThreadProcessing
 
Simulatorm_lpSim
 
boost::thread m_SimThread
 
boost::interprocess::interprocess_condition m_WaitForInitEndCond
 
boost::interprocess::interprocess_mutex m_WaitForInitEndMutex
 
boost::interprocess::interprocess_condition m_WaitForSimEndCond
 
boost::interprocess::interprocess_mutex m_WaitForSimEndMutex
 

Detailed Description

Definition at line 6 of file SimulationThread.h.

Member Function Documentation

void AnimatSim::SimulationThread::HandleCriticalError ( std::string  strError)
virtual

Handle critical-errors in the GUI. A critical error will report the error and then shut the entire application down.

Author
dcofer
Date
7/5/2011
Parameters
strErrorThe error.

Implements AnimatSim::ISimGUICallback.

Definition at line 229 of file SimulationThread.cpp.

void AnimatSim::SimulationThread::HandleNonCriticalError ( std::string  strError)
virtual

Handle a non-critical error in the GUI. Non-critical errors are simply reported and the simulation stopped if it is running.

Author
dcofer
Date
7/5/2011
Parameters
strErrorThe error.

Implements AnimatSim::ISimGUICallback.

Definition at line 222 of file SimulationThread.cpp.

void AnimatSim::SimulationThread::NeedToStopSimulation ( )
virtual

Callback to inform that GUI that the currently running simulation needs to be stopped.

This is used when the EndSimTime property is set to allow the simulation to automatically stop after a set amount of time. When the simulation reaches that point it pauses the simulation and fires this event. The GUI then stops the simulation.

Author
dcofer
Date
3/25/2011

Implements AnimatSim::ISimGUICallback.

Definition at line 217 of file SimulationThread.cpp.


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