Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/yacs.git] / idl / SALOME_RessourcesCatalog.idl
1 // File: SALOME_RessourcesCatalog.idl
2 // Created: Mon Sep 10 2001
3 // Author: Estelle Deville
4 // Project: SALOME
5 // Copyright : CEA/DEN/DMSS/LGLS
6 // $Header$
7
8 module SALOME_RessourcesCatalog{
9   // Type Definitions
10
11   //Proc_info : information about a processor
12   struct proc_info{
13     long number;
14     string model_name;
15     float cpu_mhz;
16     float cache_size;
17   };
18
19   typedef sequence<proc_info> ListOfProc;
20
21   //Computer_info : information about a computer
22   // Os and informations about processors
23   struct computer_info{
24     string name;
25     string OS;
26     string OS_version;
27     ListOfProc procs;
28   };
29
30   enum ContainerType {Cpp, python, NP};
31   typedef sequence<ContainerType> ListOfContainerType;
32
33   typedef sequence<string> ListOfComputer;
34
35   // exception thrown if a computer is not found in the catalog 
36
37   exception NotFound {};
38
39   //------------------------------------------------------------------
40   //Interface
41   interface RessourcesCatalog {
42     ListOfComputer GetComputerList();
43     ListOfContainerType GetContainerTypeList (in string computer) raises(NotFound);
44     computer_info GetComputerInfo(in string computer) raises(NotFound);
45   };
46 };