MAK RTIspy API Documentation for HLA 1516
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
exec
forwarderFaultManager.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2005 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: forwarderFaultManager.h,v $ $Revision: 1.4 $ $State: Exp $
7
*********************************************************************/
10
11
#ifndef DtForwarderFaultManager_H_
12
#define DtForwarderFaultManager_H_
13
14
#include "
rtiMsConfig.h
"
15
#include <vector>
16
#include <map>
17
#include <vlutil/vlTime.h>
18
19
class
DtConnectionMgr
;
20
class
DtJoinMsg
;
21
class
DtForwarderConnectionLostMsg
;
22
class
DtForwarderPingMsg
;
23
24
30
class
DT_DLL_EXEC
DtForwarderFaultManager
31
{
32
private
:
34
DtForwarderFaultManager
();
35
public
:
36
38
DtForwarderFaultManager
(
DtConnectionMgr
* connectMgr,
39
MAKRti::DtTime heartbeatPeriod );
40
42
virtual
~
DtForwarderFaultManager
();
43
47
virtual
void
tick
();
48
49
public
:
50
52
static
void
processJoin(
const
DtJoinMsg
& msg,
void
* usr);
53
55
static
void
processConnectionLost(
const
DtForwarderConnectionLostMsg
& msg,
void
* usr);
56
58
static
void
processPing(
const
DtForwarderPingMsg
& msg,
void
* usr);
59
60
protected
:
61
62
typedef
std::vector< unsigned long >
DtConnIdList
;
63
typedef
std::map< unsigned long, DtConnIdList >
DtForwarderIdToConnIdsMap
;
64
65
protected
:
66
69
virtual
void
processJoin(
const
DtJoinMsg
& msg);
70
73
virtual
void
processConnectionLost(
const
DtForwarderConnectionLostMsg
& msg);
74
77
virtual
void
processPing(
const
DtForwarderPingMsg
& msg);
78
80
virtual
void
pingAllForwarders()
const
;
81
83
virtual
void
pingForwarder(
unsigned
long
forwarderId )
const
;
84
86
virtual
void
resignForwarder(
unsigned
long
forwarderId )
const
;
87
89
virtual
void
disconnectFederates(
const
DtConnIdList
& federates )
const
;
90
91
protected
:
92
93
DtForwarderIdToConnIdsMap
myForwarderToFederatesMap
;
94
DtConnectionMgr
*
myConnectMgr
;
95
MAKRti::DtClock
myClock
;
96
MAKRti::DtTime
myHeartbeatPeriod
;
97
MAKRti::DtTime
myLastHeartbeat
;
98
};
99
100
#endif
Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)