#include <simulationtasksupervisor.h>
  
  
      
        
          | virtual void createSimTask  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
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 | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
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  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
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. 
 
 
  
  
      
        
          | std::string nameSuffix = "(tasked)" | 
         
       
   | 
  
staticprotected   | 
  
 
 
  
  
      
        
          | osg::ArgumentParser * parser = 0 | 
         
       
   | 
  
staticprotected   | 
  
 
 
The documentation for this class was generated from the following files: