⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 federationmanagement.hh

📁 分布式仿真 开放源码
💻 HH
字号:
// ----------------------------------------------------------------------------// CERTI - HLA RunTime Infrastructure// Copyright (C) 2002, 2003  ONERA//// This file is part of CERTI//// CERTI is free software ; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation ; either version 2 of the License, or// (at your option) any later version.//// CERTI is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY ; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program ; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA//// $Id: FederationManagement.hh,v 3.10 2003/10/20 12:05:50 breholee Exp $// ----------------------------------------------------------------------------#ifndef _CERTI_RTIA_FEDERATION_MANAGEMENT#define _CERTI_RTIA_FEDERATION_MANAGEMENT#include "baseTypes.hh"#include "RTItypes.hh"#include "NetworkMessage.hh"#include "Communications.hh"namespace certi {namespace rtia {class TimeManagement ;class FederationManagement{public:    FederationManagement(Communications *);    ~FederationManagement();    void checkFederationSaving(void) throw (SaveInProgress);    void checkFederationRestoring(void) throw (RestoreInProgress);    // -- Create/Destroy --    void createFederationExecution(const char *theName, TypeException &e);    void destroyFederationExecution(const char *theName, TypeException &e);    // -- Join/Resign --    FederateHandle joinFederationExecution(const char *Federate,                                           const char *Federation,                                           TypeException &e);    void resignFederationExecution(ResignAction action,                                   TypeException &e);    // Synchronization.    void registerSynchronization(const char *label,                                 const char *tag,                                 TypeException &e);    void unregisterSynchronization(const char *label,                                   TypeException &e);    void synchronizationPointRegistrationSucceeded(const char *label);    void federationSynchronized(const char *label);    void announceSynchronizationPoint(const char *label,                                      const char *tag);    // Saving.    void requestFederationSave(const char *, FederationTime, TypeException &);    void federateSaveBegun(TypeException &);    void federateSaveStatus(bool, TypeException &);    void initiateFederateSave(const char *);    void federationSavedStatus(bool);    // Restoring.    void requestFederationRestore(const char *label,                                  TypeException &e);    void federateRestoreStatus(bool status, TypeException &e);    void requestFederationRestoreStatus(bool status,                                        const char *label,                                        const char *reason);    void federationRestoreBegun(void);    void initiateFederateRestore(const char *label,                                 FederateHandle handle);    void federationRestoredStatus(bool status);    // Attributes    TimeManagement *tm ;    Handle _numero_federation ;    FederateHandle federate ;    Boolean _fin_execution ;    private:    Communications *comm ;    Boolean _est_createur_federation ;    Boolean _est_membre_federation ;    bool savingState ;    bool restoringState ;    std::list<char *> synchronizationLabels ; //!< Labels being synchronized.    char _nom_federation[MAX_FEDERATION_NAME_LENGTH] ;    char _nom_federe[MAX_FEDERATE_NAME_LENGTH] ;};}} // namespace certi/rtia#endif // _CERTI_RTIA_FEDERATION_MANAGEMENT// $Id: FederationManagement.hh,v 3.10 2003/10/20 12:05:50 breholee Exp $

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -