open-dis-cpp
ElectromagneticEmissionBeamData.h
1 #pragma once
2 
3 #include <dis6/FundamentalParameterData.h>
4 #include <dis6/TrackJamTarget.h>
5 #include <vector>
6 #include <dis6/utils/DataStream.h>
7 #include <dis6/opendis6_export.h>
8 
9 
10 namespace DIS
11 {
12 // Description of one electronic emission beam
13 
14 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
15 //
16 // @author DMcG, jkg
17 
18 class OPENDIS6_EXPORT ElectromagneticEmissionBeamData
19 {
20 protected:
22  unsigned char _beamDataLength;
23 
25  unsigned char _beamIDNumber;
26 
28  unsigned short _beamParameterIndex;
29 
32 
34  unsigned char _beamFunction;
35 
37  unsigned char _numberOfTrackJamTargets;
38 
40  unsigned char _highDensityTrackJam;
41 
43  unsigned char _pad4;
44 
46  unsigned int _jammingModeSequence;
47 
49  std::vector<TrackJamTarget> _trackJamTargets;
50 
51 
52  public:
55 
56  virtual void marshal(DataStream& dataStream) const;
57  virtual void unmarshal(DataStream& dataStream);
58 
59  unsigned char getBeamDataLength() const;
60  void setBeamDataLength(unsigned char pX);
61 
62  unsigned char getBeamIDNumber() const;
63  void setBeamIDNumber(unsigned char pX);
64 
65  unsigned short getBeamParameterIndex() const;
66  void setBeamParameterIndex(unsigned short pX);
67 
68  FundamentalParameterData& getFundamentalParameterData();
69  const FundamentalParameterData& getFundamentalParameterData() const;
70  void setFundamentalParameterData(const FundamentalParameterData &pX);
71 
72  unsigned char getBeamFunction() const;
73  void setBeamFunction(unsigned char pX);
74 
75  unsigned char getNumberOfTrackJamTargets() const;
76 
77  unsigned char getHighDensityTrackJam() const;
78  void setHighDensityTrackJam(unsigned char pX);
79 
80  unsigned char getPad4() const;
81  void setPad4(unsigned char pX);
82 
83  unsigned int getJammingModeSequence() const;
84  void setJammingModeSequence(unsigned int pX);
85 
86  std::vector<TrackJamTarget>& getTrackJamTargets();
87  const std::vector<TrackJamTarget>& getTrackJamTargets() const;
88  void setTrackJamTargets(const std::vector<TrackJamTarget>& pX);
89 
90 
91 virtual int getMarshalledSize() const;
92 
93  bool operator ==(const ElectromagneticEmissionBeamData& rhs) const;
94 };
95 }
96 
97 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
98 // Redistribution and use in source and binary forms, with or without
99 // modification, are permitted provided that the following conditions
100 // are met:
101 //
102 // * Redistributions of source code must retain the above copyright
103 // notice, this list of conditions and the following disclaimer.
104 // * Redistributions in binary form must reproduce the above copyright
105 // notice, this list of conditions and the following disclaimer
106 // in the documentation and/or other materials provided with the
107 // distribution.
108 // * Neither the names of the Naval Postgraduate School (NPS)
109 // Modeling Virtual Environments and Simulation (MOVES) Institute
110 // (http://www.nps.edu and http://www.MovesInstitute.org)
111 // nor the names of its contributors may be used to endorse or
112 // promote products derived from this software without specific
113 // prior written permission.
114 //
115 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
116 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
117 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
118 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
119 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
120 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
121 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
122 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
123 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
124 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
125 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
126 // POSSIBILITY OF SUCH DAMAGE.
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
unsigned short _beamParameterIndex
This field shall specify a Beam Parameter Index number that shall be used by receiving entities in co...
Definition: ElectromagneticEmissionBeamData.h:28
a class to support managing a network buffer.
Definition: DataStream.h:28
unsigned char _pad4
padding
Definition: ElectromagneticEmissionBeamData.h:43
unsigned int _jammingModeSequence
identify jamming techniques used
Definition: ElectromagneticEmissionBeamData.h:46
FundamentalParameterData _fundamentalParameterData
Fundamental parameter data such as frequency range, beam sweep, etc.
Definition: ElectromagneticEmissionBeamData.h:31
unsigned char _highDensityTrackJam
wheher or not the receiving simulation apps can assume all the targets in the scan pattern are being ...
Definition: ElectromagneticEmissionBeamData.h:40
unsigned char _beamDataLength
This field shall specify the length of this beams data in 32 bit words.
Definition: ElectromagneticEmissionBeamData.h:22
Definition: FundamentalParameterData.h:15
std::vector< TrackJamTarget > _trackJamTargets
variable length list of track/jam targets
Definition: ElectromagneticEmissionBeamData.h:49
unsigned char _beamIDNumber
This field shall specify a unique emitter database number assigned to differentiate between otherwise...
Definition: ElectromagneticEmissionBeamData.h:25
Definition: ElectromagneticEmissionBeamData.h:18
unsigned char _beamFunction
beam function of a particular beam
Definition: ElectromagneticEmissionBeamData.h:34
unsigned char _numberOfTrackJamTargets
Number of track/jam targets.
Definition: ElectromagneticEmissionBeamData.h:37