open-dis-cpp
FalseTargetsAttribute.h
1 #pragma once
2 
3 #include <dis7/utils/DataStream.h>
4 #include <dis7/opendis7_export.h>
5 
6 
7 namespace DIS
8 {
9 // The False Targets attribute record shall be used to communicate discrete values that are associated with false targets jamming that cannot be referenced to an emitter mode. The values provided in the False Targets attri- bute record shall be considered valid only for the victim radar beams listed in the jamming beam's Track/Jam Data records (provided in the associated Electromagnetic Emission PDU). Section 6.2.12.3
10 
11 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
12 //
13 // @author DMcG, jkg
14 
15 class OPENDIS7_EXPORT FalseTargetsAttribute
16 {
17 protected:
18  unsigned int _recordType;
19 
20  unsigned short _recordLength;
21 
22  unsigned short _padding;
23 
24  unsigned char _emitterNumber;
25 
26  unsigned char _beamNumber;
27 
28  unsigned char _stateIndicator;
29 
30  unsigned char _padding2;
31 
32  float _falseTargetCount;
33 
34  float _walkSpeed;
35 
36  float _walkAcceleration;
37 
38  float _maximumWalkDistance;
39 
40  float _keepTime;
41 
42  float _echoSpacing;
43 
44  unsigned int _padding3;
45 
46 
47  public:
49  virtual ~FalseTargetsAttribute();
50 
51  virtual void marshal(DataStream& dataStream) const;
52  virtual void unmarshal(DataStream& dataStream);
53 
54  unsigned int getRecordType() const;
55  void setRecordType(unsigned int pX);
56 
57  unsigned short getRecordLength() const;
58  void setRecordLength(unsigned short pX);
59 
60  unsigned short getPadding() const;
61  void setPadding(unsigned short pX);
62 
63  unsigned char getEmitterNumber() const;
64  void setEmitterNumber(unsigned char pX);
65 
66  unsigned char getBeamNumber() const;
67  void setBeamNumber(unsigned char pX);
68 
69  unsigned char getStateIndicator() const;
70  void setStateIndicator(unsigned char pX);
71 
72  unsigned char getPadding2() const;
73  void setPadding2(unsigned char pX);
74 
75  float getFalseTargetCount() const;
76  void setFalseTargetCount(float pX);
77 
78  float getWalkSpeed() const;
79  void setWalkSpeed(float pX);
80 
81  float getWalkAcceleration() const;
82  void setWalkAcceleration(float pX);
83 
84  float getMaximumWalkDistance() const;
85  void setMaximumWalkDistance(float pX);
86 
87  float getKeepTime() const;
88  void setKeepTime(float pX);
89 
90  float getEchoSpacing() const;
91  void setEchoSpacing(float pX);
92 
93  unsigned int getPadding3() const;
94  void setPadding3(unsigned int pX);
95 
96 
97 virtual int getMarshalledSize() const;
98 
99  bool operator ==(const FalseTargetsAttribute& rhs) const;
100 };
101 }
102 
103 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
104 // Redistribution and use in source and binary forms, with or without
105 // modification, are permitted provided that the following conditions
106 // are met:
107 //
108 // * Redistributions of source code must retain the above copyright
109 // notice, this list of conditions and the following disclaimer.
110 // * Redistributions in binary form must reproduce the above copyright
111 // notice, this list of conditions and the following disclaimer
112 // in the documentation and/or other materials provided with the
113 // distribution.
114 // * Neither the names of the Naval Postgraduate School (NPS)
115 // Modeling Virtual Environments and Simulation (MOVES) Institute
116 // (http://www.nps.edu and http://www.MovesInstitute.org)
117 // nor the names of its contributors may be used to endorse or
118 // promote products derived from this software without specific
119 // prior written permission.
120 //
121 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
122 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
123 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
124 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
125 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
126 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
127 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
128 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
129 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
130 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
131 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
132 // POSSIBILITY OF SUCH DAMAGE.
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
a class to support managing a network buffer.
Definition: DataStream.h:28
Definition: FalseTargetsAttribute.h:15