Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PsnPvmSvm.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of openMask © INRIA, CNRS, Universite de Rennes 1 1993-2002, thereinafter the Software
00003  * 
00004  * The Software has been developped within the Siames Project. 
00005  * INRIA, the University of Rennes 1 and CNRS jointly hold intellectual property rights
00006  * 
00007  * The Software has been registered with the Agence pour la Protection des
00008  * Programmes (APP) under registration number IDDN.FR.001.510008.00.S.P.2001.000.41200
00009  *
00010  * This file may be distributed under the terms of the Q Public License
00011  * version 1.0 as defined by Trolltech AS of Norway and appearing in the file
00012  * LICENSE.QPL included in the packaging of this file.
00013  *
00014  * Licensees holding valid specific licenses issued by INRIA, CNRS or Université de Rennes 1 
00015  * for the software may use this file in accordance with that specific license 
00016  *
00017  */
00018 #ifndef PsPvmSvmHEADER
00019 #define PsPvmSvmHEADER
00020 
00021 #include <PsnSvm.h>
00022 #include <PsString.h>
00023 
00024 class PsnProcess;
00025 
00031 class PsnPvmSvm : public PsnSvm 
00032 {   
00033 public :
00040    PsnPvmSvm (PsNameToPointerMap<PsnProcess> * tab, const PsDate & latence, int argc, char * argv [] ) ;
00041 
00043    virtual ~PsnPvmSvm () ;
00044 
00045 protected:
00050    virtual void joinSvmGroup (string & groupName) ;
00051    
00052       
00057    virtual void groupBarrier (string groupName, int numberToJoin) ; 
00058       
00059 
00061    virtual void broadcastToGroup (string groupName, PsnPvmMessage::MessageTag tag) ;
00062    
00063 
00069    virtual int nonblockingReceive (PsnPvmMessage::MessageTag tag) ; 
00070    
00072    virtual void initBeforeMessagePacking() ;
00073  
00074    
00079    virtual pair<PsnPvmMessage::MessageTag, int> waitForAnyRequests (PsnPvmIncomingMessage & receiveBuffer) ;
00080 
00081 
00084    virtual int getSiteId () ;
00085 
00086 
00090    virtual int getParentSiteId();
00091 
00092 
00094    virtual void addNewWorkstation(const PsName & m);
00095 
00096 
00098    virtual void removeWorkstation(const PsName & m);
00099 
00100 
00102    virtual int spawnProcess (PsnProcess * p) ;
00103 
00104 
00108    virtual PsnSvmLink * createSvmLink (const int & d) ;
00109 
00110 
00111 public:
00113    static int pvmDataEncoding ;
00114    
00115 
00117    static int pvmSpawnFlags ;
00118 
00119 
00120 protected:
00122    int _argc ;
00123 
00124 
00126    char ** _argv ;
00127 
00128 } ; // PsnPvmSvm
00129 
00130 
00131 #endif

logo OpenMask

Documentation generated on Mon Nov 25 15:25:01 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001