SimulationTaskSupervisor Class Reference
#include <simulationtasksupervisor.h>
List of all members.
Constructor & Destructor Documentation
Member Function Documentation
| virtual void createSimTask |
( |
|
) |
[inline, virtual] |
Creates one SimulationTask with taskId=SimulationTaskHandle.simTaskList.size().
- Parameters:
-
| argc | count of arguments in argv |
| argv | array of arguments, given to Simulation when the tasks starts |
| virtual void createSimTasks |
( |
int |
taskCount |
) |
[inline, virtual] |
Same as createSimTask, but create more than one task at once.
taskIds assigned in ascending order.
- Parameters:
-
| taskCount | number of tasks to create |
| argc | count of arguments in argv |
| argv | array of arguments, given to Simulation when the tasks starts |
| static void destroyInstance |
( |
|
) |
[inline, static] |
Destroys the singleton instance of this class.
Returns the singleton instance of this class.
There is no way to instantiate yourself this class.
- Parameters:
-
| simTaskHandle | The global SimulationTaskHandle were you can put in your needed data. This handle is shared by all parallel running simulations. |
- Returns:
- the singleton instance of this class
| void runSimTasks |
( |
int * |
argc, |
|
|
char ** |
argv | |
|
) |
| | [virtual] |
Runs all generated SimulationTasks.
| void setNumberThreads |
( |
int |
numberThreads |
) |
[static] |
Sets the number of total threads running at one time.
- Parameters:
-
| void setNumberThreadsPerCore |
( |
int |
numberThreadsPerCore |
) |
[static] |
Sets the number of threads created per core.
The default value is 1. So if your machine has e.g. 4 cores, 4 threads are created. If you have much code which must be synchronized, it may be useful to increase the number of threads per core, 2 is a good value.
- Parameters:
-
| void setSimTaskNameSuffix |
( |
std::string |
name |
) |
[virtual] |
Sets a suffix to be appended to the window name to identify your simTask.
Member Data Documentation
int * argc = 0 [static, protected] |
char ** argv = 0 [static, protected] |
std::string nameSuffix = "(tasked)" [static, protected] |
osg::ArgumentParser * parser = 0 [static, protected] |
LpzRobotsViewer* viewer [static, protected] |
The documentation for this class was generated from the following files: