- Main Page
- Namespaces
- Classes
- Files

- Search for |

# schema.h

    00001 // "schema.h"
    00002
    00003 // (c) OPAC Team, LIFL, August 2005
    00004
    00005 /*
    00006    Contact: paradiseo-help@lists.gforge.inria.fr
    00007 */
    00008
    00009 #ifndef __schema_h
    00010 #define __schema_h
    00011
    00012 #include <string>
    00013 #include <vector>
    00014 #include <cassert>
    00015
    00016 #include "../../core/runner.h"
    00017
    00018 typedef int RANK_ID;
    00019
    00020 struct Node {
    00021
    00022   RANK_ID rk; /* Rank */
    00023   std :: string name; /* Host name */
    00024   unsigned num_workers; /* Number of parallel workers */
    00025   int rk_sched; /* rank of the scheduler */
    00026   std :: vector <RUNNER_ID> id_run; /* List of runners */
    00027 };
    00028
    00029 extern std :: vector <Node> the_schema;
    00030
    00031 extern Node * my_node;
    00032
    00033 extern void loadSchema (const char * __filename);
    00034
    00035 extern RANK_ID getRankOfRunner (RUNNER_ID __key);
    00036
    00037 extern bool isScheduleNode ();
    00038
    00039 #endif