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 PsMomeControllerHEADER 00019 #define PsMomeControllerHEADER 00020 00021 #include <PsDistributedController.h> 00022 00023 class PsnSharedMemoryManager; 00024 class PsnRelaxedMemoryManager; 00025 class PsnCoherantMemoryManager; 00026 class PsnOutputSharedData; 00027 class PsnUniqueCreator; 00028 class PsnBroadcastManager; 00029 00036 class PsMomeController : public PsDistributedController 00037 { 00038 public: 00042 PsMomeController(PsObjectDescriptor & initialObjects, const PsDate & initialDate ); 00043 00047 virtual ~PsMomeController(); 00048 00052 virtual void init(); 00053 00056 virtual void prepareEventProcessing ( list <PsEvent *> & myList ) ; 00057 00060 virtual void computeNextSimulationStep(); 00061 00064 virtual void actOnSystemEvent( PsEvent * evt ); 00065 00068 virtual PsnOutputSharedData * creerDonneesOutput (const PsName & object, const PsName & name); 00069 00072 virtual void invalidateOutput(const PsName & object, const PsName & name); 00073 00076 virtual PsnMirrorObjectHandle * newPsnMirrorObjectHandle(PsSimulatedObject & ) ; 00077 00080 virtual PsnReferenceObjectHandle * newPsnReferenceObjectHandle (PsSimulatedObject & object, 00081 PsController & controller, 00082 PsnSignalDispatcher * signalDispatcher); 00083 00084 00086 virtual void syncAttributesAndEvents( void ); 00087 00091 static PsnSharedMemoryManager * whichSharedMemoryManager(void * ptr); 00092 00094 static PsnSharedMemoryManager * STLSharedMemoryManager; 00095 00097 static PsnRelaxedMemoryManager * outputDataSharedMemoryManager; 00098 00100 static PsnCoherantMemoryManager * controlersDataSharedMemoryManager; 00101 00103 static void errorMome(); 00104 00106 static void SigSegvExceptionThrower(void *); 00107 00109 virtual void createControlledObjects( const PsObjectDescriptor * subTree ); 00110 00114 virtual int getOutputHistorySize(void) ; 00115 00118 virtual void broadcast (const PsName & nomDestinataire, const PsString & message) ; 00119 00120 protected: 00123 int numSegCoherenceForte; 00124 00126 size_t _tailleAlloueParSegment; 00127 00129 int* _zoneCoherenceForte; 00130 00132 static PsnCoherantMemoryManager * strictMemoryManager; 00133 00135 static PsnRelaxedMemoryManager * weakMemoryManager; 00136 00138 PsnOutputOffsetTable * myOutputOffsetTable; 00139 00141 PsnUniqueCreator * _sharedObjectFactory; 00142 00144 PsNameServer * ancServeur; 00145 00147 PsnBroadcastManager * _myBroadcastManager; 00148 00150 static char * nomExecutable ; 00151 }; 00152 #endif
| Documentation generated on Mon Nov 25 15:25:00 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |