VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
Tutorials
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfExtObjects
simApplicationInteroperation.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: simAppInterOp.h,v $ $Revision: 1.1 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef DtSimApplicationInteroperation_H_
10
#define DtSimApplicationInteroperation_H_
11
12
// This header file contains the definitions related to interoperabiltiy
13
// between VR-Forces applications. VR-Forces applications encode echelon
14
// information about the entities' (and aggregates') position with a military
15
// hierarchy. This is accomplished within the confines of the standard set of
16
// PDUs (DIS), and the RPR FOM (HLA).
17
18
// The entity identifier is used to identify an entity in a DIS exercise or
19
// an HLA exercise using the RPR FOM (site Id/application Id/entity number).
20
// VR-Forces application Ids are limited to falling with a specified range
21
// (non VR-Forces should be assigned application Ids outside this range when
22
// participating in exercises with VR-Forces applications). The entity number
23
// is an integer generated internally by the VR-Forces application.
24
//
25
// e.g. 225/3002/3, a remote vrforces entity
26
//
27
// Lower limit for VR-Forces application Ids.
28
const
int
DtSimApplicationIdLowerLimit
= 3000;
29
30
// Upper limit for VR-Forces application Ids.
31
const
int
DtSimApplicationIdUpperLimit
= 4000;
32
33
#if DtHLA
34
// HLA
35
// The global object designators are encoded in the following manner for
36
// VR-Forces entities and aggregates:
37
// <prefix><character indicating top level superior><federate id>:<entity id>
38
// e.g. "VRF2:195", a remote VR-Forces entity, which should be attached to
39
// lower-level superior (lower than force-level).
40
41
// prefix - a short string tag identifying designator as one generated by a
42
// VR-forces application.
43
const
char
DtSimAppPrefix
[] =
"VRF"
;
44
45
#if DtHLA_1516
46
const
char
DtSimGlobalObjectDesignatorFormat
[] =
"%3.3s%s:%d"
;
47
#else
48
// Global object designator format
49
const
char
DtSimGlobalObjectDesignatorFormat
[] =
"%3.3s%d:%d"
;
50
#endif
51
#endif
52
53
// Format string for marking text. Marking text exists for both DIS and
54
// HLA/RPR. It is used by VR-Forces to encode an entity's echelon Id
55
// designator, category, superior-type information. The first 3 characters
56
// are reserved for the designator string, the next 6 characters are reserved
57
// for the category, and the final character is reserved for a single character
58
// indicating if the entity is attached to a top-level superior (force level).
59
// If the last character is a '*', then the entity should be attached to a
60
// force-level superior, otherwise it should be attached to some lower-level
61
// superior.
62
//
63
// e.g. " 1 M1A1*"
64
65
const
int
DtSimMaxEncodedMarkingLength
= 10;
66
const
int
DtSimMaxDesignatorLength
= 3;
67
const
int
DtSimMaxCategoryLength
= 6;
68
const
char
DtSimMarkingFormat
[] =
"%3.3s%6.6s%1.1c"
;
69
70
// top-level superior character
71
const
char
DtSimTopLevelSuperiorChar
=
'*'
;
72
73
74
#endif
75
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)