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

PsnProcess.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 PsnProcessHEADER
00019 #define PsnProcessHEADER
00020 
00021 #include <Psn.h>
00022 #include <PsName.h>
00023 #include <PsString.h>
00024 #include <PsPackable.h>
00025 #include <PsNumericType.h>
00026 
00027 class PsnSvmLink;
00028 
00032 class PsnProcess : public PsPackable
00033 {
00034 public:
00035 
00037    PsnProcess (const string & np, const string & mac);
00038 
00040    virtual ~PsnProcess ();
00041    
00043    virtual void unpack (PsIncomingSynchronisationMessage &) ;
00044    
00046    virtual void pack (PsOutgoingSynchronisationMessage &) const ;
00047   
00049    const PsName & getProcessName() const ;
00050 
00052    const PsName & getHostMachineName() const ;
00053 
00055    const PsFrequency & getFrequency () const ;
00056 
00058    const PsFrequency & getMaxFrequencyOfHostedObjects () const ;
00059 
00061    PsnSvmLink * getSvmLink () const ;
00062    
00064    const PsDate & getDateOfLastMessage () const ;
00065 
00067    const PsDate & getPeriod () const ;
00068 
00070    void setDateOfLastMessage ( const PsDate & d ) ;
00071    
00073    void setFrequency (const PsFrequency & val);
00074 
00076    void setMaxHostedFrequency (const PsInt & val);
00077    
00079    void setSvmLink ( PsnSvmLink* val);
00080 
00081 
00082 protected:
00084    PsDate _dateOfLastMessage ;
00085    
00086    
00090    PsDate _period ;
00091    
00093    PsName  _processName; 
00094    
00096    PsName  _machineName; 
00097    
00099    PsFrequency _processFrequency;  
00100    
00102    PsFrequency _maxHostedFrequency ;
00103    
00105    PsnSvmLink * _svmLink; 
00106    
00107 };    // PsnProcess
00108 
00109 #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