WSF
Message3_6.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11#ifndef L16_MESSAGE3_6_HPP
12#define L16_MESSAGE3_6_HPP
13#include "MessageDefines.hpp"
14
15namespace WsfL16
16{
17namespace Messages
18{
19namespace J3_6
20{
21// Continuation1,2,3,4,5 not yet defined.
22
23class VelocityField : public NormalField<14, NoStatementMid>
24{
25public:
26 typedef double accessor_type;
29 {
30 mValue = (value_type)EncodeTCMod((int)(MetersToFeet(aVal) / 3.33));
31 return *this;
32 }
33 operator double() const { return FeetToMeters(3.33 * DecodeTC(mValue)); }
34};
35
36class PositionField : public NormalField<23, NoStatementMid>
37{
38public:
39 typedef double accessor_type;
42 {
43 mValue = (value_type)EncodeTCMod((int)(MetersToFeet(aVal) / 10.0));
44 return *this;
45 }
46 operator double() const { return FeetToMeters(DecodeTC(mValue) * 10.0); }
47};
48
50{
51public:
53
59 DEFINE_MEMBERS5(WcsX, WcsVelX, WcsY, SpaceAmplify, AmplifyConfidence);
60};
61
63{
64public:
66
74 DEFINE_MEMBERS7(WcsVelY, WcsZ, WcsVelZ, IsTrackLost, IsBoosting, DataIndicator, Spare);
75};
76
78{
79public:
85
86 DEFINE_MEMBERS4(DisSite, DisApplication, DisEntityId, Spare);
87};
88
89// Note: This is just the outline of the message. All fields are integers; need to expand
91{
92public:
103
104 DEFINE_MEMBERS9(SigmaX_Position,
105 SigmaY_Position,
106 SigmaZ_Position,
107 CovarianceElement22,
108 CovarianceElement33,
109 Element33Sign,
110 AbsoluteValueOfCovariance,
111 SignOfCovariance12,
112 SignOfCovariance13);
113};
114
115
116class Initial : public InitialBase
117{
118public:
120
134 // typedef IntegerFieldNS<12, NoStatementZero> FieldType12;
135 // typedef SpareField<1> FieldType13;
136
137 DEFINE_MEMBERS13(IsExerciseTrackUnit,
138 IsForceTell,
139 IsSpecialProcessingRequired,
140 IsSimulated,
141 IsSpecificType,
142 TrackNumber,
143 Minute,
144 Second,
145 TrackQuality,
146 Identity,
147 IsIdentityDifferent,
148 SpacePlatform,
149 SpaceActivity); // SpaceSpecificType, Spare);
152};
153
154} // namespace J3_6
155} // namespace Messages
156} // namespace WsfL16
157
158
159#endif
for fields with 1 == true
Definition FieldTypes.hpp:986
The base class for J-Message ContinuationBase words.
Definition Messages.hpp:168
Definition FieldTypes.hpp:2487
Definition FieldTypes.hpp:2493
Definition FieldTypes.hpp:2481
Definition Messages.hpp:183
int DecodeTC(unsigned a2C) const
Definition FieldTypes.hpp:256
value_type mValue
Definition FieldTypes.hpp:293
unsigned EncodeTCMod(int aInt) const
Definition FieldTypes.hpp:281
SmallIntType< BIT_COUNT >::integer_type value_type
Use the smallest integer to hold the data.
Definition FieldTypes.hpp:229
Definition FieldTypes.hpp:1492
InitialBase(const InitialBase &aSrc)
Definition Messages.cpp:123
Integral field with a 'NoStatement' value. Supports conversion to/from int.
Definition FieldTypes.hpp:389
Integral field without a 'NoStatement' value. Supports conversion to/from int.
Definition FieldTypes.hpp:373
Definition Message3_6.hpp:91
DEFINE_MEMBERS9(SigmaX_Position, SigmaY_Position, SigmaZ_Position, CovarianceElement22, CovarianceElement33, Element33Sign, AbsoluteValueOfCovariance, SignOfCovariance12, SignOfCovariance13)
IntegerField< 1 > FieldType8
Definition Message3_6.hpp:101
IntegerField< 10 > FieldType2
Definition Message3_6.hpp:95
IntegerField< 10 > FieldType4
Definition Message3_6.hpp:97
IntegerField< 10 > FieldType1
Definition Message3_6.hpp:94
IntegerField< 10 > FieldType3
Definition Message3_6.hpp:96
IntegerField< 10 > FieldType5
Definition Message3_6.hpp:98
IntegerField< 1 > FieldType6
Definition Message3_6.hpp:99
IntegerField< 1 > FieldType9
Definition Message3_6.hpp:102
IntegerField< 10 > FieldType7
Definition Message3_6.hpp:100
Definition Message3_6.hpp:50
PositionField FieldType3
Definition Message3_6.hpp:56
IntegerFieldNS< 5, NoStatementZero > FieldType4
Definition Message3_6.hpp:57
PositionField FieldType1
Definition Message3_6.hpp:54
VelocityField FieldType2
Definition Message3_6.hpp:55
DEFINE_MEMBERS5(WcsX, WcsVelX, WcsY, SpaceAmplify, AmplifyConfidence)
IntegerFieldNS< 3, NoStatementZero > FieldType5
Definition Message3_6.hpp:58
Definition Message3_6.hpp:63
BooleanField FieldType5
Definition Message3_6.hpp:71
VelocityField FieldType1
Definition Message3_6.hpp:67
BooleanField FieldType4
Definition Message3_6.hpp:70
PositionField FieldType2
Definition Message3_6.hpp:68
DEFINE_MEMBERS7(WcsVelY, WcsZ, WcsVelZ, IsTrackLost, IsBoosting, DataIndicator, Spare)
VelocityField FieldType3
Definition Message3_6.hpp:69
SpareField< 12 > FieldType7
Definition Message3_6.hpp:73
IntegerFieldNS< 3, NoStatementZero > FieldType6
Definition Message3_6.hpp:72
Definition Message3_6.hpp:78
DisSiteField FieldType1
Definition Message3_6.hpp:81
DisEntityIdField FieldType3
Definition Message3_6.hpp:83
DisApplicationField FieldType2
Definition Message3_6.hpp:82
SpareField< 20 > FieldType4
Definition Message3_6.hpp:84
DEFINE_MEMBERS4(DisSite, DisApplication, DisEntityId, Spare)
Definition Message3_6.hpp:117
BooleanField FieldType2
Definition Message3_6.hpp:122
IntegerFieldNS< 6, NoStatementZero > FieldType12
Definition Message3_6.hpp:132
BooleanField FieldType4
Definition Message3_6.hpp:124
IntegerFieldNS< 7, NoStatementZero > FieldType13
Definition Message3_6.hpp:133
MinuteField FieldType7
Definition Message3_6.hpp:127
TrackNumberField FieldType6
Definition Message3_6.hpp:126
DEFINE_MEMBERS13(IsExerciseTrackUnit, IsForceTell, IsSpecialProcessingRequired, IsSimulated, IsSpecificType, TrackNumber, Minute, Second, TrackQuality, Identity, IsIdentityDifferent, SpacePlatform, SpaceActivity)
IdentityField FieldType10
Definition Message3_6.hpp:130
BooleanField FieldType1
Definition Message3_6.hpp:121
BooleanField FieldType3
Definition Message3_6.hpp:123
TrackQualityField1 FieldType9
Definition Message3_6.hpp:129
BooleanField FieldType5
Definition Message3_6.hpp:125
BooleanField FieldType11
Definition Message3_6.hpp:131
SecondField FieldType8
Definition Message3_6.hpp:128
Definition Message3_6.hpp:37
AccessorUnitsMetersTag accessor_units
Definition Message3_6.hpp:40
double accessor_type
Definition Message3_6.hpp:39
PositionField & operator=(double aVal)
Definition Message3_6.hpp:41
Definition Message3_6.hpp:24
AccessorUnitsMetersPerSecondTag accessor_units
Definition Message3_6.hpp:27
double accessor_type
Definition Message3_6.hpp:26
VelocityField & operator=(double aVal)
Definition Message3_6.hpp:28
Definition FieldTypes.hpp:1702
Definition FieldTypes.hpp:2376
Definition FieldTypes.hpp:2865
Definition FieldTypes.hpp:2903
Definition Message3_6.hpp:20
Definition ComputerPart.hpp:45
double FeetToMeters(double aFeet)
Feet to Meters.
Definition NumericConversion.hpp:24
double MetersToFeet(double aMeters)
Meters to Feet.
Definition NumericConversion.hpp:19
This file should be included prior to defining a message. Currently there is a limit of 32 fields per...
Definition AllMessages.hpp:55
Definition FieldTypes.hpp:108
A field defined as spare.
Definition FieldTypes.hpp:305
Copyrights Multiple, All Rights Reserved