VR-Forces 4.0.4 Class Documentation
include/vrfExtObjects/simAppInterOp.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: simAppInterOp.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef DtSimApplicationInteroperation_H_
00010 #define DtSimApplicationInteroperation_H_
00011 
00012 // This header file contains the definitions related to interoperabiltiy
00013 // between VR-Forces applications.  VR-Forces applications encode echelon 
00014 // information about the entities' (and aggregates') position with a military 
00015 // hierarchy.  This is accomplished within the confines of the standard set of 
00016 // PDUs (DIS), and the RPR FOM (HLA).
00017 
00018 // The entity identifier is used to identify an entity in a DIS exercise or
00019 // an HLA exercise using the RPR FOM (site Id/application Id/entity number).  
00020 // VR-Forces application Ids are limited to falling with a specified range 
00021 // (non VR-Forces should be assigned application Ids outside this range when 
00022 // participating in exercises with VR-Forces applications).  The entity number
00023 // is an integer generated internally by the VR-Forces application.
00024 // 
00025 // e.g. 225/3002/3, a remote vrforces entity
00026 // 
00027 // Lower limit for VR-Forces application Ids.
00028 const int DtSimApplicationIdLowerLimit = 3000;
00029 
00030 // Upper limit for VR-Forces application Ids.
00031 const int DtSimApplicationIdUpperLimit = 4000;
00032 
00033 #if DtHLA
00034 // HLA
00035 // The global object designators are encoded in the following manner for
00036 // VR-Forces entities and aggregates:
00037 // <prefix><character indicating top level superior><federate id>:<entity id>
00038 // e.g. "VRF2:195", a remote VR-Forces entity, which should be attached to 
00039 // lower-level superior (lower than force-level). 
00040 
00041 // prefix - a short string tag identifying designator as one generated by a 
00042 // VR-forces application.
00043 const char DtSimAppPrefix[] = "VRF";
00044 
00045 #if DtHLA_1516
00046 const char DtSimGlobalObjectDesignatorFormat[] = "%3.3s%s:%d";
00047 #else
00048 // Global object designator format
00049 const char DtSimGlobalObjectDesignatorFormat[] = "%3.3s%d:%d";
00050 #endif
00051 #endif
00052 
00053 // Format string for marking text.  Marking text exists for both DIS and 
00054 // HLA/RPR.  It is used by VR-Forces to encode an entity's echelon Id 
00055 // designator, category, superior-type information.  The first 3 characters 
00056 // are reserved for the designator string, the next 6 characters are reserved
00057 // for the category, and the final character is reserved for a single character
00058 // indicating if the entity is attached to a top-level superior (force level).
00059 // If the last character is a '*', then the entity should be attached to a 
00060 // force-level superior, otherwise it should be attached to some lower-level 
00061 // superior.
00062 //
00063 // e.g. "  1  M1A1*"
00064 
00065 const int DtSimMaxEncodedMarkingLength = 10;
00066 const int DtSimMaxDesignatorLength = 3;
00067 const int DtSimMaxCategoryLength = 6;
00068 const char DtSimMarkingFormat[] = "%3.3s%6.6s%1.1c";
00069  
00070 // top-level superior character
00071 const char DtSimTopLevelSuperiorChar = '*';
00072 
00073 
00074 #endif
00075 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)