General KERNEL Documentation     End User KERNEL Services  


idl/SALOME_RessourcesCatalog.idl

Go to the documentation of this file.
00001 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00002 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
00003 // 
00004 //  This library is free software; you can redistribute it and/or 
00005 //  modify it under the terms of the GNU Lesser General Public 
00006 //  License as published by the Free Software Foundation; either 
00007 //  version 2.1 of the License. 
00008 // 
00009 //  This library is distributed in the hope that it will be useful, 
00010 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00011 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00012 //  Lesser General Public License for more details. 
00013 // 
00014 //  You should have received a copy of the GNU Lesser General Public 
00015 //  License along with this library; if not, write to the Free Software 
00016 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00017 // 
00018 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00019 //
00020 //
00021 //
00022 //  File   : SALOME_RessourcesCatalog.idl
00023 //  Author : Estelle Deville
00024 //  $Header: /home/server/cvs/KERNEL/KERNEL_SRC/idl/SALOME_RessourcesCatalog.idl,v 1.4 2006/06/01 11:15:15 jfa Exp $
00025 
00026 module SALOME_RessourcesCatalog{
00027   // Type Definitions
00028 
00029   //Proc_info : information about a processor
00030   struct proc_info{
00031     long number;
00032     string model_name;
00033     float cpu_mhz;
00034     float cache_size;
00035   };
00036 
00037   typedef sequence<proc_info> ListOfProc;
00038 
00039   //Computer_info : information about a computer
00040   // Os and informations about processors
00041   struct computer_info{
00042     string name;
00043     string OS;
00044     string OS_version;
00045     ListOfProc procs;
00046   };
00047 
00048   enum ContainerType {Cpp, python, NP};
00049   typedef sequence<ContainerType> ListOfContainerType;
00050 
00051   typedef sequence<string> ListOfComputer;
00052 
00053   // exception thrown if a computer is not found in the catalog 
00054 
00055   exception NotFound {};
00056 
00057   //------------------------------------------------------------------
00058   //Interface
00059   interface RessourcesCatalog {
00060     ListOfComputer GetComputerList();
00061     ListOfContainerType GetContainerTypeList (in string computer) raises(NotFound);
00062     computer_info GetComputerInfo(in string computer) raises(NotFound);
00063   };
00064 };