#include <taskmanager.h>
Public Methods | |
| virtual void | spawnSlaves () |
| virtual void | generateTasks () |
| virtual void | errorShutDown () |
| void | shutDown () |
| void | assignTask (int who) |
| void | timeOut (int who) |
| void | assignInitialTasks () |
| void | executeTasks () |
| int | packetCheck () |
| void | closeFile () |
| void | openStatisticsFile () |
| void | closeStatisticsFile () |
| void | appendToStatisticsFile () |
| void | ReadFile () |
| int | getMachineIndexFromSlave (int who) |
Public Attributes | |
| int | nproc |
| char | procHostMachines [MAXPROC][MAX_STR] |
| int | nhost |
| int | narch |
| int | pingtimeout |
| int | nres |
| int | TASK_STEPS |
| int | NROBOTS |
| int | NTASKS |
| int | TASK_PER_EVAL |
| int | MAX_GENERATIONS |
| char | SLAVENAME [MAX_STR] |
| char | pesdefFileName [MAX_STR] |
| char * | pescArgs [MAX_PESC_ARGS] |
| char | resultsFolderName [MAX_STR] |
| int | RANDOM_SEED |
| pvmhostinfo * | hostp |
| Population * | p |
| PESTask * | tasks |
| PESSlaveInfo | slaves [MAXPROC] |
| PESNetworkAdapter | NetAdapter |
| FILE * | logFile |
| FILE * | fstat |
| FILE * | ferror |
This class manages execution of tasks on PES. Contains host information. Also contains configuration information. Tasks are executed using this class and results are also collected with this class. So essentially this class encapsulates functionality of two sub modules. Configuration manager and task manager.
|
|
Append these tasks to statistics file |
|
|
This function assigns initial tasks to slaves. |
|
|
This function assigns a task to PES-C with local id 'who'. This function doesn't fail even if there is no task avaliable. Then the function just sends a warning message to the console. |
|
|
Stub function for log File operations. |
|
|
Close statistics file |
|
|
Shuts Down the system and reports an error condition. |
|
|
This function distributes tasks to PES-C's and executes them. This function is also responsible for fault checking. |
|
|
Generates tasks to be used in the program |
|
|
Returns index of the machine, on which the slave program is running. |
|
|
Open statistics file |
|
|
This function checks for incoming messages and gets the first message in queue. This message is processed and according changes are made. |
|
|
Read Configuration File |
|
|
Shuts down the Task Manager. Normally only called by the destructor. |
|
|
This function spawns PES-S applications on the server. |
|
|
This function signals time out of PES-C task with id 'who'. |
|
|
Pointer to Problematic tasks file |
|
|
Pointer to Statistics file |
|
|
Host information |
|
|
Standart log file. |
|
|
Maximum number of generations |
|
|
Number of different architectures being used |
|
|
Network adapter to be used in communication with slave tasks |
|
|
Number of different hosts being used |
|
|
Number of processes being used |
|
|
Number of results that has reached server |
|
|
Number of robots to be used |
|
|
Total Number of tasks |
|
|
Population of solutions to be used |
|
|
Arguments to be passed to pesc |
|
|
Name of pes definition file |
|
|
The timeout |
|
|
The hosts to be used in this experiment |
|
|
GA Random number generator seed |
|
|
results folder name |
|
|
Name of the slave to be used |
|
|
Information about slaves. |
|
|
Tasks to be executed for each function evaluation |
|
|
Number of Steps to be executed |
|
|
List of tasks |
1.2.18